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

Unified Diff: components/search/search.cc

Issue 2196393006: Remove search::ShouldAllowPrefetchNonDefaultMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_prerender_omnibox
Patch Set: Created 4 years, 4 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
« no previous file with comments | « components/search/search.h ('k') | components/search/search_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search/search.cc
diff --git a/components/search/search.cc b/components/search/search.cc
index cbc955235522a4bd84bbc15b3122b422e329f10e..db31c283f61d039df9fe29096cc211a66629e4f6 100644
--- a/components/search/search.cc
+++ b/components/search/search.cc
@@ -59,8 +59,6 @@ const char kDisablingSuffix[] = "DISABLED";
const char kEnableQueryExtractionFlagName[] = "query_extraction";
#endif
-const char kAllowPrefetchNonDefaultMatch[] = "allow_prefetch_non_default_match";
-
#if defined(OS_ANDROID)
const char kPrefetchSearchResultsFlagName[] = "prefetch_results";
@@ -228,16 +226,6 @@ bool ShouldReuseInstantSearchBasePage() {
#endif
}
-bool ShouldAllowPrefetchNonDefaultMatch() {
- if (!ShouldPrefetchSearchResults())
- return false;
-
- FieldTrialFlags flags;
- return GetFieldTrialInfo(&flags) &&
- GetBoolValueForFlagWithDefault(kAllowPrefetchNonDefaultMatch, false,
- flags);
-}
-
// |url| should either have a secure scheme or have a non-HTTPS base URL that
// the user specified using --google-base-url. (This allows testers to use
// --google-base-url to point at non-HTTPS servers, which eases testing.)
« no previous file with comments | « components/search/search.h ('k') | components/search/search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698