Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: chrome/browser/extensions/test_extension_system.h

Issue 14757022: Add a non-blocking "OneShotEvent" class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename Latch to OneShotEvent Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/test_extension_system.h
diff --git a/chrome/browser/extensions/test_extension_system.h b/chrome/browser/extensions/test_extension_system.h
index 78ef6f2b6ef74241f49e64bec74ff8bfda04369c..cb82f2d6a582f1a8135b4100c0255e59b93beff5 100644
--- a/chrome/browser/extensions/test_extension_system.h
+++ b/chrome/browser/extensions/test_extension_system.h
@@ -71,6 +71,9 @@ class TestExtensionSystem : public ExtensionSystem {
OVERRIDE;
virtual ExtensionWarningService* warning_service() OVERRIDE;
virtual Blacklist* blacklist() OVERRIDE;
+ virtual const OneShotEvent& ready() const OVERRIDE;
+ // Calls ready().Signal().
+ void MakeReady();
// Factory method for tests to use with SetTestingProfile.
static ProfileKeyedService* Build(content::BrowserContext* profile);
@@ -79,6 +82,8 @@ class TestExtensionSystem : public ExtensionSystem {
Profile* profile_;
private:
+ virtual void ExtensionServiceReady() OVERRIDE;
+
// The Extension Preferences. Only created if CreateExtensionService is
// invoked.
scoped_ptr<ExtensionPrefs> extension_prefs_;
@@ -93,6 +98,7 @@ class TestExtensionSystem : public ExtensionSystem {
scoped_ptr<LocationManager> location_manager_;
scoped_refptr<ExtensionInfoMap> info_map_;
scoped_ptr<ApiResourceManager<Socket> > socket_manager_;
+ OneShotEvent ready_;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698