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

Unified Diff: chrome/browser/sessions/session_restore_browsertest.cc

Issue 24733003: Update defaults for InstantExtended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test exclusion. Created 7 years, 2 months 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
Index: chrome/browser/sessions/session_restore_browsertest.cc
diff --git a/chrome/browser/sessions/session_restore_browsertest.cc b/chrome/browser/sessions/session_restore_browsertest.cc
index 22b08355c1b9cc3ca3f5c6a73fc65e774c239574..4f1fde543f837c80398b9b014514d993167cd6f4 100644
--- a/chrome/browser/sessions/session_restore_browsertest.cc
+++ b/chrome/browser/sessions/session_restore_browsertest.cc
@@ -87,6 +87,12 @@ class SessionRestoreTest : public InProcessBrowserTest {
#endif
InProcessBrowserTest::SetUpOnMainThread();
+
+ // Wait for the InstantNTP prerendered contents to load.
+ content::WindowedNotificationObserver observer(
+ content::NOTIFICATION_LOAD_STOP,
+ content::NotificationService::AllSources());
+ observer.Wait();
}
virtual bool SetUpUserDataDirectory() OVERRIDE {
@@ -650,7 +656,7 @@ IN_PROC_BROWSER_TEST_F(SessionRestoreTest, Basic) {
}
IN_PROC_BROWSER_TEST_F(SessionRestoreTest, RestoreWebUI) {
- const GURL webui_url("chrome://newtab");
+ const GURL webui_url("chrome://omnibox");
ui_test_utils::NavigateToURL(browser(), webui_url);
const content::WebContents* old_tab =
browser()->tab_strip_model()->GetActiveWebContents();

Powered by Google App Engine
This is Rietveld 408576698