Skip to content

Commit 2424589

Browse files
deepak1556codebytere
authored andcommitted
Use ExtensionSystem::is_ready() instead of ExtensionService::is_ready()
https://chromium-review.googlesource.com/c/chromium/src/+/2207499
1 parent 278f3e1 commit 2424589

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

shell/browser/extensions/electron_extension_system.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ const base::OneShotEvent& ElectronExtensionSystem::ready() const {
185185
return ready_;
186186
}
187187

188+
bool ElectronExtensionSystem::is_ready() const {
189+
return ready_.is_signaled();
190+
}
191+
188192
ContentVerifier* ElectronExtensionSystem::content_verifier() {
189193
return nullptr;
190194
}

shell/browser/extensions/electron_extension_system.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class ElectronExtensionSystem : public ExtensionSystem {
7474
const std::string& extension_id,
7575
const UnloadedExtensionReason reason) override;
7676
const base::OneShotEvent& ready() const override;
77+
bool is_ready() const override;
7778
ContentVerifier* content_verifier() override;
7879
std::unique_ptr<ExtensionSet> GetDependentExtensions(
7980
const Extension* extension) override;

0 commit comments

Comments
 (0)