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

Unified Diff: components/nacl/loader/nonsfi/nonsfi_listener.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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
« no previous file with comments | « components/nacl/loader/nacl_listener.cc ('k') | components/nacl/renderer/pnacl_translation_resource_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/nonsfi_listener.cc
diff --git a/components/nacl/loader/nonsfi/nonsfi_listener.cc b/components/nacl/loader/nonsfi/nonsfi_listener.cc
index cfd32be39ac285ce8949e2597a0a4b479882d8ed..fff0e586c41455f64bd84e90c98f7761eb638918 100644
--- a/components/nacl/loader/nonsfi/nonsfi_listener.cc
+++ b/components/nacl/loader/nonsfi/nonsfi_listener.cc
@@ -7,7 +7,6 @@
#include "base/command_line.h"
#include "base/file_descriptor_posix.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
#include "base/rand_util.h"
#include "components/nacl/common/nacl_messages.h"
#include "components/nacl/common/nacl_types.h"
@@ -50,7 +49,7 @@ void NonSfiListener::Listen() {
switches::kProcessChannelID),
IPC::Channel::MODE_CLIENT,
this, // As a Listener.
- io_thread_.message_loop_proxy().get(),
+ io_thread_.task_runner().get(),
true, // Create pipe now.
&shutdown_event_);
base::MessageLoop::current()->Run();
@@ -112,10 +111,9 @@ void NonSfiListener::OnStart(const nacl::NaClStartParams& params) {
// TODO(teravest): Do we plan on using this renderer handle for nexe loading
// for non-SFI? Right now, passing an empty channel handle instead causes
// hangs, so we'll keep it.
- trusted_listener_ = new NaClTrustedListener(
- params.trusted_service_channel_handle,
- io_thread_.message_loop_proxy().get(),
- &shutdown_event_);
+ trusted_listener_ =
+ new NaClTrustedListener(params.trusted_service_channel_handle,
+ io_thread_.task_runner().get(), &shutdown_event_);
// Ensure that the validation cache key (used as an extra input to the
// validation cache's hashing) isn't exposed accidentally.
« no previous file with comments | « components/nacl/loader/nacl_listener.cc ('k') | components/nacl/renderer/pnacl_translation_resource_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698