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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 8618001: Get rid of the EnableClose() infrastructure in Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/test/base/testing_profile.cc
===================================================================
--- chrome/test/base/testing_profile.cc (revision 110996)
+++ chrome/test/base/testing_profile.cc (working copy)
@@ -345,6 +345,19 @@
this, BuildTemplateURLService);
}
+void TestingProfile::BlockUntilTemplateURLServiceLoaded() {
+ TemplateURLService* turl_model =
+ TemplateURLServiceFactory::GetForProfile(this);
+ if (turl_model->loaded())
+ return;
+
+ ui_test_utils::WindowedNotificationObserver turl_service_load_observer(
+ chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
+ content::NotificationService::AllSources());
+ turl_model->Load();
+ turl_service_load_observer.Wait();
+}
+
void TestingProfile::CreateExtensionProcessManager() {
extension_process_manager_.reset(ExtensionProcessManager::Create(this));
}

Powered by Google App Engine
This is Rietveld 408576698