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

Unified Diff: components/storage_monitor/storage_monitor_chromeos.cc

Issue 1126963003: [components/storage_monitor] Use ThreadTaskRunnerHandle instead of LoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments 2 Created 5 years, 7 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: components/storage_monitor/storage_monitor_chromeos.cc
diff --git a/components/storage_monitor/storage_monitor_chromeos.cc b/components/storage_monitor/storage_monitor_chromeos.cc
index 6227ee00aa21266da8d7012fd3f9da3f237900b8..bc1d7c58ba91308691813118f0eabc5adec01f57 100644
--- a/components/storage_monitor/storage_monitor_chromeos.cc
+++ b/components/storage_monitor/storage_monitor_chromeos.cc
@@ -6,6 +6,7 @@
#include "base/files/file_path.h"
#include "base/logging.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/strings/string16.h"
#include "base/strings/string_number_conversions.h"
@@ -104,9 +105,9 @@ void StorageMonitorCros::Init() {
CheckExistingMountPoints();
if (!media_transfer_protocol_manager_) {
- scoped_refptr<base::MessageLoopProxy> loop_proxy;
media_transfer_protocol_manager_.reset(
- device::MediaTransferProtocolManager::Initialize(loop_proxy));
+ device::MediaTransferProtocolManager::Initialize(
+ scoped_refptr<base::SingleThreadTaskRunner>()));
}
media_transfer_protocol_device_observer_.reset(

Powered by Google App Engine
This is Rietveld 408576698