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

Unified Diff: chrome/browser/sync_file_system/drive_backend/callback_helper_unittest.cc

Issue 363373003: Replace MessageLoopProxy::current() with ThreadTaskRunnerHandle::Get() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/conflict_resolver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/callback_helper_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/callback_helper_unittest.cc b/chrome/browser/sync_file_system/drive_backend/callback_helper_unittest.cc
index 30ee74459be3e8e741d8b82c9ce5aa57c5105b32..9ee47935374bb1cf9dfc75c8c83ab61c8b1c370c 100644
--- a/chrome/browser/sync_file_system/drive_backend/callback_helper_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend/callback_helper_unittest.cc
@@ -6,6 +6,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -64,9 +65,9 @@ TEST(DriveBackendCallbackHelperTest, RunOnOtherThreadTest) {
base::Thread thread("WorkerThread");
thread.Start();
- scoped_refptr<base::MessageLoopProxy> ui_task_runner =
- base::MessageLoopProxy::current();
- scoped_refptr<base::MessageLoopProxy> worker_task_runner =
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
+ base::ThreadTaskRunnerHandle::Get();
+ scoped_refptr<base::SequencedTaskRunner> worker_task_runner =
thread.message_loop_proxy();
bool called = false;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/conflict_resolver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698