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

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 11088012: [Win, MediaGallery] Enumerate and handle mtp device attach/detach events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 2 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/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index 3373a469e2a0cb06f03d1cf9e4b583fc762cd6c0..0227ae9231428c48b827696ec7c20a688cd20425 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -27,6 +27,7 @@
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
#include "chrome/browser/shell_integration.h"
+#include "chrome/browser/system_monitor/media_transfer_protocol_device_observer_win.h"
#include "chrome/browser/system_monitor/removable_device_notifications_window_win.h"
#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/browser/ui/uninstall_browser_prompt.h"
@@ -200,6 +201,8 @@ void ChromeBrowserMainPartsWin::PreMainMessageLoopStart() {
// Make sure that we know how to handle exceptions from the message loop.
InitializeWindowProcExceptions();
}
+ media_transfer_protocol_device_observer_ =
+ new chrome::mtp::MediaTransferProtocolDeviceObserverWin();
removable_device_notifications_window_ =
new chrome::RemovableDeviceNotificationsWindowWin();
}
@@ -223,6 +226,7 @@ void ChromeBrowserMainPartsWin::PreMainMessageLoopRun() {
ChromeBrowserMainParts::PreMainMessageLoopRun();
removable_device_notifications_window_->Init();
+ media_transfer_protocol_device_observer_->Init();
#if defined(USE_AURA)
metro_viewer_process_host_.reset(new MetroViewerProcessHost);
#endif

Powered by Google App Engine
This is Rietveld 408576698