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

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

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 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
« no previous file with comments | « chrome/browser/search/hotword_service_factory.cc ('k') | chrome/browser/search/search_android_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 925e419ff6d2e4849a8d8c6771f476299cf597e6..a1d5a71038dbf1062df4ad8d5b1789bee71e1f79 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -330,7 +330,8 @@ bool IsQueryExtractionEnabled() {
if (!IsInstantExtendedAPIEnabled())
return false;
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ const base::CommandLine* command_line =
+ base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kEnableQueryExtraction))
return true;
@@ -534,7 +535,7 @@ bool ShouldPrefetchSearchResults() {
return false;
#if defined(OS_ANDROID)
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kPrefetchSearchResults)) {
return true;
}
@@ -583,7 +584,7 @@ GURL GetLocalInstantURL(Profile* profile) {
}
DisplaySearchButtonConditions GetDisplaySearchButtonConditions() {
- const CommandLine* cl = CommandLine::ForCurrentProcess();
+ const base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
if (cl->HasSwitch(switches::kDisableSearchButtonInOmnibox))
return DISPLAY_SEARCH_BUTTON_NEVER;
if (cl->HasSwitch(switches::kEnableSearchButtonInOmniboxForStr))
@@ -608,7 +609,7 @@ bool ShouldDisplayOriginChip() {
}
OriginChipCondition GetOriginChipCondition() {
- const CommandLine* cl = CommandLine::ForCurrentProcess();
+ const base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
if (cl->HasSwitch(switches::kDisableOriginChip))
return ORIGIN_CHIP_DISABLED;
if (cl->HasSwitch(switches::kEnableOriginChipAlways))
@@ -731,7 +732,7 @@ bool ShouldPrefetchSearchResultsOnSRP() {
}
void EnableQueryExtractionForTesting() {
- CommandLine* cl = CommandLine::ForCurrentProcess();
+ base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
cl->AppendSwitch(switches::kEnableQueryExtraction);
}
« no previous file with comments | « chrome/browser/search/hotword_service_factory.cc ('k') | chrome/browser/search/search_android_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698