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

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: dcronin's comments; ExtensionSystem::ready; and WeakPtr support 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..d9ca7daa95841605474a6984df0251a3791db3f7 100644
--- a/chrome/browser/extensions/test_extension_system.cc
+++ b/chrome/browser/extensions/test_extension_system.cc
@@ -180,6 +180,14 @@ Blacklist* TestExtensionSystem::blacklist() {
return blacklist_.get();
}
+const AsyncEvent& TestExtensionSystem::ready() const {
+ return ready_;
+}
+
+void TestExtensionSystem::MakeReady() {
+ ready_.MarkHappened();
+}
+
// static
ProfileKeyedService* TestExtensionSystem::Build(
content::BrowserContext* profile) {

Powered by Google App Engine
This is Rietveld 408576698