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() { |