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

Unified Diff: components/search/search.cc

Issue 2513913002: Instant cleanup: Remove unused Android-only cmdline switches (Closed)
Patch Set: review Created 4 years, 1 month 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_android_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 97cdacb9856e289ec53621c7db0b4be12fe671ba..e7389813510358bc060497d80c558b725793312f 100644
--- a/components/search/search.cc
+++ b/components/search/search.cc
@@ -6,15 +6,11 @@
#include <stddef.h>
-#include "base/command_line.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_number_conversions.h"
-#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "components/google/core/browser/google_util.h"
-#include "components/search/search_switches.h"
#include "components/search_engines/template_url.h"
#include "url/gurl.h"
@@ -78,13 +74,6 @@ bool IsInstantExtendedAPIEnabled() {
// Determine what embedded search page version to request from the user's
// default search provider. If 0, the embedded search UI should not be enabled.
uint64_t EmbeddedSearchPageVersion() {
-#if defined(OS_ANDROID)
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableEmbeddedSearchAPI)) {
- return kEmbeddedSearchEnabledVersion;
- }
-#endif
-
FieldTrialFlags flags;
if (GetFieldTrialInfo(&flags)) {
return GetUInt64ValueForFlagWithDefault(kEmbeddedPageVersionFlagName,
@@ -176,11 +165,6 @@ bool ShouldPrefetchSearchResults() {
return false;
#if defined(OS_ANDROID)
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kPrefetchSearchResults)) {
- return true;
- }
-
FieldTrialFlags flags;
return GetFieldTrialInfo(&flags) &&
GetBoolValueForFlagWithDefault(kPrefetchSearchResultsFlagName, false,
« no previous file with comments | « components/search/search.h ('k') | components/search/search_android_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698