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

Unified Diff: chrome/utility/media_galleries/ipc_data_source.cc

Issue 1111673003: [chrome/utility] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: chrome/utility/media_galleries/ipc_data_source.cc
diff --git a/chrome/utility/media_galleries/ipc_data_source.cc b/chrome/utility/media_galleries/ipc_data_source.cc
index c65a89826a0111d194b65a46bce754e7868c5fce..e7ea6b2c2506cc75eef18c0fe090562f43fb1f53 100644
--- a/chrome/utility/media_galleries/ipc_data_source.cc
+++ b/chrome/utility/media_galleries/ipc_data_source.cc
@@ -5,6 +5,8 @@
#include "chrome/utility/media_galleries/ipc_data_source.h"
#include "base/message_loop/message_loop_proxy.h"
Lei Zhang 2015/04/28 05:24:56 remove?
Pranay 2015/05/04 03:32:25 Done.
+#include "base/single_thread_task_runner.h"
Lei Zhang 2015/04/28 05:24:56 not needed?
Pranay 2015/05/04 03:32:25 Done.
+#include "base/thread_task_runner_handle.h"
#include "chrome/common/extensions/chrome_utility_extensions_messages.h"
#include "content/public/utility/utility_thread.h"
@@ -12,7 +14,7 @@ namespace metadata {
IPCDataSource::IPCDataSource(int64 total_size)
: total_size_(total_size),
- utility_task_runner_(base::MessageLoopProxy::current()),
+ utility_task_runner_(base::ThreadTaskRunnerHandle::Get()),
next_request_id_(0) {
data_source_thread_checker_.DetachFromThread();
}

Powered by Google App Engine
This is Rietveld 408576698