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

Unified Diff: chromeos/settings/cros_settings_provider.cc

Issue 825473002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chromeos/process_proxy/process_proxy.cc ('k') | chromeos/system/statistics_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/settings/cros_settings_provider.cc
diff --git a/chromeos/settings/cros_settings_provider.cc b/chromeos/settings/cros_settings_provider.cc
index 66ca64cb141a05f601e46d93121ebd4210982cd0..98faf718ca788efd615b7daeff331ddc8e26d115 100644
--- a/chromeos/settings/cros_settings_provider.cc
+++ b/chromeos/settings/cros_settings_provider.cc
@@ -25,7 +25,8 @@ void CrosSettingsProvider::Set(const std::string& path,
// We don't allow changing any of the cros settings without prefix
// "cros.session." in the guest mode.
// It should not reach here from UI in the guest mode, but just in case.
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession) &&
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kGuestSession) &&
!::StartsWithASCII(path, "cros.session.", true)) {
LOG(ERROR) << "Ignoring the guest request to change: " << path;
return;
« no previous file with comments | « chromeos/process_proxy/process_proxy.cc ('k') | chromeos/system/statistics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698