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

Unified Diff: chrome/browser/instant/instant_test_utils.cc

Issue 11833043: Instant Extended: Fallback to local preview if the remote instant page is not ready on user input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: Addressing sreeram's comments. Created 7 years, 11 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/instant/instant_test_utils.cc
diff --git a/chrome/browser/instant/instant_test_utils.cc b/chrome/browser/instant/instant_test_utils.cc
index 56aed0f51122ebd3989a6f494f229b859273ad63..515a96508c43550baddc853619123d5b3b90c298 100644
--- a/chrome/browser/instant/instant_test_utils.cc
+++ b/chrome/browser/instant/instant_test_utils.cc
@@ -57,6 +57,10 @@ void InstantTestBase::SetupInstant() {
CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kInstantURL, instant_url_.spec());
SetupInstantUsingTemplateURL();
+
+ // TODO(shishir): Fix this ugly hack.
+ instant()->SetInstantEnabled(false);
+ instant()->SetInstantEnabled(true);
}
void InstantTestBase::SetupInstantUsingTemplateURL() {
« no previous file with comments | « chrome/browser/instant/instant_tab.cc ('k') | chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698