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

Unified Diff: chromeos/settings/cros_settings_provider.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 months 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/disks/disk_mount_manager.cc ('k') | chromeos/system/version_loader.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 dceed62f9e783613057bd2a6c4f1a95966e6ec99..d6e901445fc6f4feb431a4027466f071bf59d0e6 100644
--- a/chromeos/settings/cros_settings_provider.cc
+++ b/chromeos/settings/cros_settings_provider.cc
@@ -27,7 +27,7 @@ void CrosSettingsProvider::Set(const std::string& path,
// It should not reach here from UI in the guest mode, but just in case.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kGuestSession) &&
- !::base::StartsWithASCII(path, "cros.session.", true)) {
+ !base::StartsWith(path, "cros.session.", base::CompareCase::SENSITIVE)) {
LOG(ERROR) << "Ignoring the guest request to change: " << path;
return;
}
« no previous file with comments | « chromeos/disks/disk_mount_manager.cc ('k') | chromeos/system/version_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698