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..ca4547317e3c0e4af4af52ab69f0aeea9e1d989c 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::EnableInstantExtendedAPIForTesting(); |
// Verifies that a default search is made using the provider configured via |
// policy. Also checks that default search can be completely disabled. |