| 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 a5fcc48cde0b809c84ae50bedbd192a30752486e..302b6d8b0dfdc009bd066aaec3aaab0417311da8 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());
|
| }
|
|
|
|
|