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

Unified Diff: chromeos/disks/disk_mount_manager.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/dbus/session_manager_client.cc ('k') | chromeos/settings/cros_settings_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/disks/disk_mount_manager.cc
diff --git a/chromeos/disks/disk_mount_manager.cc b/chromeos/disks/disk_mount_manager.cc
index a046b215023876649ba70f2ae39a2425314a9539..ed2c5979521b3894fef5751d5f413660f3d1c57b 100644
--- a/chromeos/disks/disk_mount_manager.cc
+++ b/chromeos/disks/disk_mount_manager.cc
@@ -276,8 +276,8 @@ class DiskMountManagerImpl : public DiskMountManager {
for (MountPointMap::iterator it = mount_points_.begin();
it != mount_points_.end();
++it) {
- if (base::StartsWithASCII(it->second.source_path, mount_path,
- true /*case sensitive*/)) {
+ if (base::StartsWith(it->second.source_path, mount_path,
+ base::CompareCase::SENSITIVE)) {
// TODO(tbarzic): Handle the case where this fails.
UnmountPath(it->second.mount_path,
UNMOUNT_OPTIONS_NONE,
@@ -606,7 +606,7 @@ class DiskMountManagerImpl : public DiskMountManager {
it != system_path_prefixes_.end();
++it) {
const std::string& prefix = *it;
- if (base::StartsWithASCII(system_path, prefix, true))
+ if (base::StartsWith(system_path, prefix, base::CompareCase::SENSITIVE))
return prefix;
}
return base::EmptyString();
« no previous file with comments | « chromeos/dbus/session_manager_client.cc ('k') | chromeos/settings/cros_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698