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

Unified Diff: components/storage_monitor/storage_monitor_linux.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 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
Index: components/storage_monitor/storage_monitor_linux.cc
diff --git a/components/storage_monitor/storage_monitor_linux.cc b/components/storage_monitor/storage_monitor_linux.cc
index 1441eaa50b1123b8323fc63169352b9a3dba3b93..aba36bbd681aa9c117c098aff28f083df0c02363 100644
--- a/components/storage_monitor/storage_monitor_linux.cc
+++ b/components/storage_monitor/storage_monitor_linux.cc
@@ -294,7 +294,8 @@ bool StorageMonitorLinux::GetStorageInfoForPath(
return false;
base::FilePath current = path;
- while (!ContainsKey(mount_info_map_, current) && current != current.DirName())
+ while (!base::ContainsKey(mount_info_map_, current) &&
+ current != current.DirName())
current = current.DirName();
MountMap::const_iterator mount_info = mount_info_map_.find(current);
@@ -468,7 +469,7 @@ void StorageMonitorLinux::UpdateMtab(const MountPointDeviceMap& new_mtab) {
bool StorageMonitorLinux::IsDeviceAlreadyMounted(
const base::FilePath& mount_device) const {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- return ContainsKey(mount_priority_map_, mount_device);
+ return base::ContainsKey(mount_priority_map_, mount_device);
}
void StorageMonitorLinux::HandleDeviceMountedMultipleTimes(
« no previous file with comments | « components/storage_monitor/storage_monitor_chromeos.cc ('k') | components/storage_monitor/transient_device_ids.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698