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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_window_win.cc

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 7 years, 10 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/system_monitor/removable_device_notifications_window_win.cc
diff --git a/chrome/browser/system_monitor/removable_device_notifications_window_win.cc b/chrome/browser/system_monitor/removable_device_notifications_window_win.cc
index 1e56eea225c10f2665884be9954fa6859641661b..372fa4dbc8e300ecbd966456620cc26b9ec22a05 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_window_win.cc
+++ b/chrome/browser/system_monitor/removable_device_notifications_window_win.cc
@@ -43,10 +43,15 @@ RemovableDeviceNotificationsWindowWin::
portable_device_watcher_(portable_device_watcher) {
DCHECK(volume_mount_watcher_);
DCHECK(portable_device_watcher_);
+ volume_mount_watcher_->SetNotifications(receiver());
+ portable_device_watcher_->SetNotifications(receiver());
}
RemovableDeviceNotificationsWindowWin::
~RemovableDeviceNotificationsWindowWin() {
+ volume_mount_watcher_->SetNotifications(NULL);
+ portable_device_watcher_->SetNotifications(NULL);
+
if (window_)
DestroyWindow(window_);

Powered by Google App Engine
This is Rietveld 408576698