Index: chrome/browser/chrome_browser_main_linux.cc |
diff --git a/chrome/browser/chrome_browser_main_linux.cc b/chrome/browser/chrome_browser_main_linux.cc |
index ec39b182b0f2b30570e7f584381022b3f3b66aa0..d9fa5015f7836e1d9c56511f1b1f3d79fc809893 100644 |
--- a/chrome/browser/chrome_browser_main_linux.cc |
+++ b/chrome/browser/chrome_browser_main_linux.cc |
@@ -4,11 +4,13 @@ |
#include "chrome/browser/chrome_browser_main_linux.h" |
+#include "base/message_loop_proxy.h" |
#include "chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h" |
#include "device/media_transfer_protocol/media_transfer_protocol_manager.h" |
#if !defined(OS_CHROMEOS) |
#include "chrome/browser/system_monitor/removable_device_notifications_linux.h" |
+#include "content/public/browser/browser_thread.h" |
#endif |
#if defined(USE_LINUX_BREAKPAD) |
@@ -21,7 +23,6 @@ |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/env_vars.h" |
#include "chrome/common/pref_names.h" |
-#include "content/public/browser/browser_thread.h" |
#if defined(OS_CHROMEOS) |
#include "chrome/browser/chromeos/settings/cros_settings.h" |
@@ -138,7 +139,12 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() { |
removable_device_notifications_linux_->Init(); |
#endif |
- device::MediaTransferProtocolManager::Initialize(); |
+ scoped_refptr<base::MessageLoopProxy> loop_proxy; |
+#if !defined(OS_CHROMEOS) |
+ loop_proxy = content::BrowserThread::GetMessageLoopProxyForThread( |
+ content::BrowserThread::FILE); |
+#endif |
+ device::MediaTransferProtocolManager::Initialize(loop_proxy); |
did_pre_profile_init_ = true; |