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

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

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.cc
diff --git a/chrome/browser/extensions/test_extension_system.cc b/chrome/browser/extensions/test_extension_system.cc
index 3bfaa963393a33ecfe61af1d101b502af6eb8aaf..f0515f761158e14147ccc7a71944ee5cf01a030e 100644
--- a/chrome/browser/extensions/test_extension_system.cc
+++ b/chrome/browser/extensions/test_extension_system.cc
@@ -180,6 +180,13 @@ Blacklist* TestExtensionSystem::blacklist() {
return blacklist_.get();
}
+const OneShotEvent& TestExtensionSystem::ready() const {
+ return ready_;
+}
+
+void TestExtensionSystem::ExtensionServiceReady() { ready_.Signal(); }
+void TestExtensionSystem::MakeReady() { ready_.Signal(); }
Matt Perry 2013/05/16 00:55:50 Might this cause problems since Signal can only be
Jeffrey Yasskin 2013/05/16 00:59:20 Tests could cause a DCHECK by calling MakeReady()
+
// static
ProfileKeyedService* TestExtensionSystem::Build(
content::BrowserContext* profile) {

Powered by Google App Engine
This is Rietveld 408576698