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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 11428149: Alternate NTP: Move bookmark bar to bottom (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years 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/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 5bf43aec385061c0c2232db9de07558d1aed21b1..b40a0ab50d7173873e9c4ed2c0f9ed7433167db6 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -738,13 +738,7 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, ForceSafeSearch) {
IN_PROC_BROWSER_TEST_F(PolicyTest, ReplaceSearchTerms) {
MakeRequestFail("search.example");
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableInstantExtendedAPI);
-
- // Adding the kEnableInstantExtendedAPI is not enough since
- // IsInstantExtendedAPIEnabled does not return true on CHANNEL_DEV.
- if (!chrome::search::IsInstantExtendedAPIEnabled(browser()->profile()))
- return;
+ chrome::search::SetForceInstantExtendedAPIEnabledForTesting(true);
// Verifies that a default search is made using the provider configured via
// policy. Also checks that default search can be completely disabled.
@@ -833,6 +827,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, ReplaceSearchTerms) {
model = location_bar->GetLocationEntry()->model();
EXPECT_TRUE(model->CurrentMatch().destination_url.is_valid());
EXPECT_EQ(ASCIIToUTF16("foobar"), model->CurrentMatch().contents);
+
+ chrome::search::SetForceInstantExtendedAPIEnabledForTesting(false);
}
// The linux and win bots can't create a GL context. http://crbug.com/103379

Powered by Google App Engine
This is Rietveld 408576698