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

Unified Diff: shell/in_process_native_runner.cc

Issue 1174063002: Remove use of MessageLoopProxy (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 | « shell/child_main.cc ('k') | shell/task_runners.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/in_process_native_runner.cc
diff --git a/shell/in_process_native_runner.cc b/shell/in_process_native_runner.cc
index f5ae3ee140262512837ddd415721a603447886bf..e7947c91191bff94e68438a90ba528be07387dd2 100644
--- a/shell/in_process_native_runner.cc
+++ b/shell/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 "shell/native_application_support.h"
@@ -38,9 +38,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_);
std::string thread_name = "app_thread_" + app_path_.BaseName().AsUTF8Unsafe();
« no previous file with comments | « shell/child_main.cc ('k') | shell/task_runners.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698