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

Unified Diff: components/storage_monitor/storage_monitor_linux.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 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_linux.cc
diff --git a/components/storage_monitor/storage_monitor_linux.cc b/components/storage_monitor/storage_monitor_linux.cc
index 436304980d72be3af4ae3dde25cf7373ea59e04c..f866b2f5fce931319525f68b690cdb233997756f 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 =
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE);
media_transfer_protocol_manager_.reset(
- device::MediaTransferProtocolManager::Initialize(loop_proxy));
+ device::MediaTransferProtocolManager::Initialize(
+ scoped_refptr<base::SingleThreadTaskRunner>()));
Lei Zhang 2015/05/14 18:54:38 Uh, this isn't right. Look closely.
Pranay 2015/05/15 03:44:05 Oops! I'm sorry. Thanks for pointing out, Lei.
}
media_transfer_protocol_device_observer_.reset(
« no previous file with comments | « components/storage_monitor/storage_monitor_chromeos.cc ('k') | components/storage_monitor/storage_monitor_linux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698