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

Unified Diff: chrome/browser/search/search.cc

Issue 749693005: Remove SearchButton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-origin-2
Patch Set: Merge to HEAD Created 5 years, 10 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 | « chrome/browser/search/search.h ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 28c7a7b33de00f7b37c224af340429d98b75991d..21254bc815755e6b70ffd08d310837f4f235212a 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -65,7 +65,6 @@ const char kUseSearchPathForInstant[] = "use_search_path_for_instant";
const char kAltInstantURLPath[] = "search";
const char kAltInstantURLQueryParams[] = "&qbp=1";
-const char kDisplaySearchButtonFlagName[] = "display_search_button";
#if !defined(OS_IOS) && !defined(OS_ANDROID)
const char kEnableQueryExtractionFlagName[] = "query_extraction";
#endif
@@ -581,27 +580,6 @@ GURL GetLocalInstantURL(Profile* profile) {
return GURL(chrome::kChromeSearchLocalNtpUrl);
}
-DisplaySearchButtonConditions GetDisplaySearchButtonConditions() {
- const base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
- if (cl->HasSwitch(switches::kDisableSearchButtonInOmnibox))
- return DISPLAY_SEARCH_BUTTON_NEVER;
- if (cl->HasSwitch(switches::kEnableSearchButtonInOmniboxForStr))
- return DISPLAY_SEARCH_BUTTON_FOR_STR;
- if (cl->HasSwitch(switches::kEnableSearchButtonInOmniboxForStrOrIip))
- return DISPLAY_SEARCH_BUTTON_FOR_STR_OR_IIP;
- if (cl->HasSwitch(switches::kEnableSearchButtonInOmniboxAlways))
- return DISPLAY_SEARCH_BUTTON_ALWAYS;
-
- FieldTrialFlags flags;
- if (!GetFieldTrialInfo(&flags))
- return DISPLAY_SEARCH_BUTTON_NEVER;
- uint64 value =
- GetUInt64ValueForFlagWithDefault(kDisplaySearchButtonFlagName, 0, flags);
- return (value < DISPLAY_SEARCH_BUTTON_NUM_VALUES) ?
- static_cast<DisplaySearchButtonConditions>(value) :
- DISPLAY_SEARCH_BUTTON_NEVER;
-}
-
bool ShouldShowGoogleLocalNTP() {
FieldTrialFlags flags;
return !GetFieldTrialInfo(&flags) || GetBoolValueForFlagWithDefault(
« no previous file with comments | « chrome/browser/search/search.h ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698