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

Unified Diff: chrome/browser/media_gallery/media_device_notifications_window_win.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_device_notifications_window_win.cc
===================================================================
--- chrome/browser/media_gallery/media_device_notifications_window_win.cc (revision 153336)
+++ chrome/browser/media_gallery/media_device_notifications_window_win.cc (working copy)
@@ -17,6 +17,7 @@
#include "chrome/browser/media_gallery/media_storage_util.h"
#include "content/public/browser/browser_thread.h"
+using base::SystemMonitor;
using content::BrowserThread;
namespace {
@@ -122,8 +123,7 @@
std::string device_id = MediaStorageUtil::MakeDeviceId(
MediaStorageUtil::USB_MASS_STORAGE_WITH_DCIM,
base::IntToString(i));
- base::SystemMonitor* monitor = base::SystemMonitor::Get();
- monitor->ProcessMediaDeviceDetached(device_id);
+ SystemMonitor::Get()->ProcessRemovableStorageDetached(device_id);
}
}
break;
@@ -154,10 +154,9 @@
const FilePath& path) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- base::SystemMonitor* monitor = base::SystemMonitor::Get();
- monitor->ProcessMediaDeviceAttached(id,
- device_name,
- path.value());
+ SystemMonitor::Get()->ProcessRemovableStorageAttached(id,
+ device_name,
+ path.value());
}
LRESULT CALLBACK MediaDeviceNotificationsWindowWin::WndProc(

Powered by Google App Engine
This is Rietveld 408576698