summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_test_utils.cc
diff options
context:
space:
mode:
authorshishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 21:27:56 +0000
committershishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 21:27:56 +0000
commit30889c2b4576c4c613b57b279184eb522a97684f (patch)
tree0da8d2d6ac4d86f4cbeefd18727d1d187114097a /chrome/browser/instant/instant_test_utils.cc
parent7ccb08c489010679739680adb84fd60d288ee20b (diff)
downloadchromium_src-30889c2b4576c4c613b57b279184eb522a97684f.zip
chromium_src-30889c2b4576c4c613b57b279184eb522a97684f.tar.gz
chromium_src-30889c2b4576c4c613b57b279184eb522a97684f.tar.bz2
Instant Extended: Fallback to local preview if the remote instant page is not ready on user input.
Reverts back to the remote URL when the preview is not showing and the omnibox looses focus. BUG=159289 Review URL: https://chromiumcodereview.appspot.com/11833043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_test_utils.cc')
-rw-r--r--chrome/browser/instant/instant_test_utils.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_test_utils.cc b/chrome/browser/instant/instant_test_utils.cc
index 56aed0f..515a965 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() {