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

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: Created 7 years, 11 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..6e6d1e6da9c6cb1806f28247d26c0e4b1bacfa4b 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_.get());
+ portable_device_watcher_->SetNotifications(receiver_.get());
}
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