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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry.cc

Issue 10873072: Rename SystemMonitor's MediaDevice calls to RemovableStorage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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: chrome/browser/media_gallery/media_file_system_registry.cc
===================================================================
--- chrome/browser/media_gallery/media_file_system_registry.cc (revision 153336)
+++ chrome/browser/media_gallery/media_file_system_registry.cc (working copy)
@@ -89,8 +89,8 @@
// TODO(thestig) Handle overlap between devices and media directories.
SystemMonitor* monitor = SystemMonitor::Get();
- const std::vector<SystemMonitor::MediaDeviceInfo> media_devices =
- monitor->GetAttachedMediaDevices();
+ const std::vector<SystemMonitor::RemovableStorageInfo> media_devices =
+ monitor->GetAttachedRemovableStorages();
for (size_t i = 0; i < media_devices.size(); ++i) {
MediaStorageUtil::Type type;
MediaStorageUtil::CrackDeviceId(media_devices[i].unique_id, &type, NULL);
@@ -119,7 +119,8 @@
return results;
}
-void MediaFileSystemRegistry::OnMediaDeviceDetached(const std::string& id) {
+void MediaFileSystemRegistry::OnRemovableStorageDetached(
+ const std::string& id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DeviceIdToInfoMap::iterator it = device_id_map_.find(id);

Powered by Google App Engine
This is Rietveld 408576698