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 |