| Index: chrome/test/base/ui_test_utils.cc
|
| diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
|
| index f3629e2fe6c04bdfc5d49aa866fd9d9981898642..06ad8c5180344095a61b6f790520ecf43e049683 100644
|
| --- a/chrome/test/base/ui_test_utils.cc
|
| +++ b/chrome/test/base/ui_test_utils.cc
|
| @@ -371,8 +371,13 @@ void WaitForBookmarkModelToLoad(Profile* profile) {
|
| void WaitForTemplateURLServiceToLoad(TemplateURLService* service) {
|
| if (service->loaded())
|
| return;
|
| +
|
| + content::WindowedNotificationObserver observer(
|
| + chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
|
| + content::Source<TemplateURLService>(service));
|
| service->Load();
|
| - TemplateURLServiceTestUtil::BlockTillServiceProcessesRequests();
|
| + observer.Wait();
|
| +
|
| ASSERT_TRUE(service->loaded());
|
| }
|
|
|
|
|