| 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;
|
|
|