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

Unified Diff: chrome/browser/prerender/prerender_field_trial.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/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_field_trial.cc
diff --git a/chrome/browser/prerender/prerender_field_trial.cc b/chrome/browser/prerender/prerender_field_trial.cc
index 02ed0222a9c73bcb760f9243749b1d3e5fc8ffaf..468d44bbb0d5dff156d342ec1006c5824aff039a 100644
--- a/chrome/browser/prerender/prerender_field_trial.cc
+++ b/chrome/browser/prerender/prerender_field_trial.cc
@@ -197,7 +197,7 @@ void SetupPrerenderFieldTrial() {
} // end namespace
-void ConfigurePrerender(const CommandLine& command_line) {
+void ConfigurePrerender(const base::CommandLine& command_line) {
enum PrerenderOption {
PRERENDER_OPTION_AUTO,
PRERENDER_OPTION_DISABLED,
@@ -249,10 +249,10 @@ bool IsOmniboxEnabled(Profile* profile) {
return false;
// Override any field trial groups if the user has set a command line flag.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kPrerenderFromOmnibox)) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kPrerenderFromOmnibox)) {
const string switch_value =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kPrerenderFromOmnibox);
if (switch_value == switches::kPrerenderFromOmniboxSwitchValueEnabled)
@@ -302,10 +302,9 @@ bool IsLocalPredictorEnabled() {
#if defined(OS_ANDROID) || defined(OS_IOS)
return false;
#endif
- return
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisablePrerenderLocalPredictor) &&
- GetLocalPredictorSpecValue(kLocalPredictorKeyName) == kEnabledGroup;
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisablePrerenderLocalPredictor) &&
+ GetLocalPredictorSpecValue(kLocalPredictorKeyName) == kEnabledGroup;
}
bool ShouldDisableLocalPredictorBasedOnSyncAndConfiguration(Profile* profile) {
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698