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

Unified Diff: mojo/runner/in_process_native_runner.cc

Issue 1169923009: Remove remaining use of the deprecated MessageLoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 5 years, 6 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 | « mojo/runner/child_process.cc ('k') | storage/browser/blob/scoped_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/in_process_native_runner.cc
diff --git a/mojo/runner/in_process_native_runner.cc b/mojo/runner/in_process_native_runner.cc
index c37e31ddd2029a841baf877496360889dfa5af55..04321c06e17e79af81fde0d6c2ea5687010d2c50 100644
--- a/mojo/runner/in_process_native_runner.cc
+++ b/mojo/runner/in_process_native_runner.cc
@@ -7,7 +7,7 @@
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/platform_thread.h"
#include "mojo/runner/native_application_support.h"
@@ -42,9 +42,9 @@ void InProcessNativeRunner::Start(
application_request_ = application_request.Pass();
DCHECK(app_completed_callback_runner_.is_null());
- app_completed_callback_runner_ =
- base::Bind(&base::TaskRunner::PostTask, base::MessageLoopProxy::current(),
- FROM_HERE, app_completed_callback);
+ app_completed_callback_runner_ = base::Bind(
+ &base::TaskRunner::PostTask, base::ThreadTaskRunnerHandle::Get(),
+ FROM_HERE, app_completed_callback);
DCHECK(!thread_);
thread_.reset(new base::DelegateSimpleThread(this, "app_thread"));
« no previous file with comments | « mojo/runner/child_process.cc ('k') | storage/browser/blob/scoped_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698