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

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: Add a test for the behavior within a Post()ed callback 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
« no previous file with comments | « chrome/browser/extensions/test_extension_system.h ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fcb55d68db439451b90de41f5f47b4c192af03e9..959f0b67c3234e880a413d3613a454966fb25d51 100644
--- a/chrome/browser/extensions/test_extension_system.cc
+++ b/chrome/browser/extensions/test_extension_system.cc
@@ -100,7 +100,8 @@ ExtensionService* TestExtensionSystem::CreateExtensionService(
ExtensionPrefs::Get(profile_),
blacklist_.get(),
autoupdate_enabled,
- true));
+ true,
+ &ready_));
extension_service_->ClearProvidersForTesting();
return extension_service_.get();
}
@@ -176,6 +177,10 @@ Blacklist* TestExtensionSystem::blacklist() {
return blacklist_.get();
}
+const OneShotEvent& TestExtensionSystem::ready() const {
+ return ready_;
+}
+
// static
ProfileKeyedService* TestExtensionSystem::Build(
content::BrowserContext* profile) {
« no previous file with comments | « chrome/browser/extensions/test_extension_system.h ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698