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

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
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | ui/aura_shell/toplevel_frame_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
===================================================================
--- chrome/test/base/testing_profile.cc (revision 111086)
+++ 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));
}
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | ui/aura_shell/toplevel_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698