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

Unified Diff: components/nacl/browser/nacl_process_host.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/browser/nacl_browser.cc ('k') | components/nacl/browser/pnacl_translation_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/nacl_process_host.cc
diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc
index da6c3e113af3a6fa6cd8dbaef409831d055378b2..4c719fd5ded2ac1a181bbdfb66d82448b8852b53 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -12,18 +12,20 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_util.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
#include "base/metrics/histogram.h"
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/process/process_iterator.h"
#include "base/rand_util.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/sys_byteorder.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
@@ -1133,10 +1135,8 @@ bool NaClProcessHost::StartPPAPIProxy(ScopedChannelHandle channel_handle) {
DCHECK_EQ(PROCESS_TYPE_NACL_LOADER, process_->GetData().process_type);
ipc_proxy_channel_ = IPC::ChannelProxy::Create(
- channel_handle.release(),
- IPC::Channel::MODE_CLIENT,
- NULL,
- base::MessageLoopProxy::current().get());
+ channel_handle.release(), IPC::Channel::MODE_CLIENT, NULL,
+ base::ThreadTaskRunnerHandle::Get().get());
// Create the browser ppapi host and enable PPAPI message dispatching to the
// browser process.
ppapi_host_.reset(content::BrowserPpapiHost::CreateExternalPluginProcess(
@@ -1383,8 +1383,7 @@ bool NaClProcessHost::AttachDebugExceptionHandler(const std::string& info,
info);
} else {
NaClStartDebugExceptionHandlerThread(
- process.Pass(), info,
- base::MessageLoopProxy::current(),
+ process.Pass(), info, base::ThreadTaskRunnerHandle::Get(),
base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker,
weak_factory_.GetWeakPtr()));
return true;
« no previous file with comments | « components/nacl/browser/nacl_browser.cc ('k') | components/nacl/browser/pnacl_translation_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698