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

Unified Diff: chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. 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
Index: chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
diff --git a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
index c9cd628d9ca0a3e47f818412f743ab6ec6126704..766693adbd226120e1204196a99487207540307b 100644
--- a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
+++ b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
@@ -307,7 +307,7 @@ class CloudPrintProxyPolicyStartupTest : public base::MultiProcessTest,
void SetUp() override;
void TearDown() override;
- scoped_refptr<base::MessageLoopProxy> IOMessageLoopProxy() {
+ scoped_refptr<base::SingleThreadTaskRunner> IOTaskRunner() {
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
}
base::Process Launch(const std::string& name);
@@ -442,7 +442,7 @@ base::Process CloudPrintProxyPolicyStartupTest::Launch(
startup_channel_ = IPC::ChannelProxy::Create(startup_channel_id_,
IPC::Channel::MODE_SERVER,
this,
- IOMessageLoopProxy());
+ IOTaskRunner());
#if defined(OS_POSIX)
base::FileHandleMappingVector ipc_file_list;
@@ -467,7 +467,7 @@ void CloudPrintProxyPolicyStartupTest::WaitForConnect() {
IPC::ChannelProxy::Create(GetServiceProcessChannel(),
IPC::Channel::MODE_NAMED_CLIENT,
ServiceProcessControl::GetInstance(),
- IOMessageLoopProxy()));
+ IOTaskRunner()));
}
bool CloudPrintProxyPolicyStartupTest::Send(IPC::Message* message) {
« no previous file with comments | « chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698