| Index: chrome/test/in_process_browser_test.cc
|
| diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
|
| index f8f882d0b338c5f1ee0d6cfa8d7b7845b14661b9..2b99c50eea41b13196c6ed53d6549ac3ec9ce421 100644
|
| --- a/chrome/test/in_process_browser_test.cc
|
| +++ b/chrome/test/in_process_browser_test.cc
|
| @@ -57,16 +57,15 @@
|
| namespace {
|
|
|
| void InitializeBrowser(Browser* browser) {
|
| + ui_test_utils::WindowedNotificationObserver observer(
|
| + content::NOTIFICATION_LOAD_STOP,
|
| + NotificationService::AllSources());
|
| browser->AddSelectedTabWithURL(GURL(chrome::kAboutBlankURL),
|
| PageTransition::START_PAGE);
|
| -
|
| // Wait for the page to finish loading.
|
| - ui_test_utils::WaitForNavigation(
|
| - &browser->GetSelectedTabContents()->controller());
|
| -
|
| + observer.Wait();
|
| browser->window()->Show();
|
| }
|
| -
|
| } // namespace
|
|
|
| extern int BrowserMain(const MainFunctionParams&);
|
|
|