Chromium Code Reviews| Index: components/storage_monitor/storage_monitor_linux.cc |
| diff --git a/components/storage_monitor/storage_monitor_linux.cc b/components/storage_monitor/storage_monitor_linux.cc |
| index 436304980d72be3af4ae3dde25cf7373ea59e04c..0cf7189b298ea8e6109ebff57c6a7b143809705d 100644 |
| --- a/components/storage_monitor/storage_monitor_linux.cc |
| +++ b/components/storage_monitor/storage_monitor_linux.cc |
| @@ -17,6 +17,7 @@ |
| #include "base/process/kill.h" |
| #include "base/process/launch.h" |
| #include "base/process/process.h" |
| +#include "base/single_thread_task_runner.h" |
| #include "base/stl_util.h" |
| #include "base/strings/string_number_conversions.h" |
| #include "base/strings/string_util.h" |
| @@ -263,10 +264,10 @@ void StorageMonitorLinux::Init() { |
| weak_ptr_factory_.GetWeakPtr())); |
| if (!media_transfer_protocol_manager_) { |
| - scoped_refptr<base::MessageLoopProxy> loop_proxy = |
| + scoped_refptr<base::SingleThreadTaskRunner> task_runner = |
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE); |
| media_transfer_protocol_manager_.reset( |
| - device::MediaTransferProtocolManager::Initialize(loop_proxy)); |
| + device::MediaTransferProtocolManager::Initialize(task_runner)); |
|
erikwright (departed)
2015/05/11 18:29:18
here, as well, I would just inline this.
Pranay
2015/05/12 03:19:48
Done.
Pranay
2015/05/15 03:44:05
Sorry..earlier changes were incorrect. Fixed as po
|
| } |
| media_transfer_protocol_device_observer_.reset( |