| Index: chrome/browser/oom_priority_manager_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/oom_priority_manager_browsertest.cc (revision 106237)
|
| +++ chrome/browser/oom_priority_manager_browsertest.cc (working copy)
|
| @@ -20,21 +20,24 @@
|
| using namespace ui_test_utils;
|
|
|
| // Get three tabs open. Load asynchronously to speed up the test.
|
| - WindowedNotificationObserver load1(content::NOTIFICATION_LOAD_STOP,
|
| - NotificationService::AllSources());
|
| + WindowedNotificationObserver load1(
|
| + content::NOTIFICATION_LOAD_STOP,
|
| + content::NotificationService::AllSources());
|
| OpenURLParams open1(GURL("chrome://about"), GURL(),
|
| CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false);
|
| browser()->OpenURL(open1);
|
|
|
| - WindowedNotificationObserver load2(content::NOTIFICATION_LOAD_STOP,
|
| - NotificationService::AllSources());
|
| + WindowedNotificationObserver load2(
|
| + content::NOTIFICATION_LOAD_STOP,
|
| + content::NotificationService::AllSources());
|
| OpenURLParams open2(GURL("chrome://credits"), GURL(),
|
| NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED,
|
| false);
|
| browser()->OpenURL(open2);
|
|
|
| - WindowedNotificationObserver load3(content::NOTIFICATION_LOAD_STOP,
|
| - NotificationService::AllSources());
|
| + WindowedNotificationObserver load3(
|
| + content::NOTIFICATION_LOAD_STOP,
|
| + content::NotificationService::AllSources());
|
| OpenURLParams open3(GURL("chrome://terms"), GURL(),
|
| NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED,
|
| false);
|
| @@ -71,8 +74,9 @@
|
| EXPECT_FALSE(g_browser_process->oom_priority_manager()->DiscardTab());
|
|
|
| // Select the first tab. It should reload.
|
| - WindowedNotificationObserver reload1(content::NOTIFICATION_LOAD_STOP,
|
| - NotificationService::AllSources());
|
| + WindowedNotificationObserver reload1(
|
| + content::NOTIFICATION_LOAD_STOP,
|
| + content::NotificationService::AllSources());
|
| browser()->SelectNumberedTab(0);
|
| reload1.Wait();
|
| EXPECT_FALSE(browser()->IsTabDiscarded(0));
|
|
|