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

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

Issue 312553004: Revert 274310 "Introduce IPC::ChannelProxy::Create*() and IPC::S..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
===================================================================
--- trunk/src/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc (revision 274314)
+++ trunk/src/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc (working copy)
@@ -266,10 +266,11 @@
CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessChannelID);
scoped_ptr<IPC::ChannelProxy> startup_channel;
- startup_channel = IPC::ChannelProxy::CreateClient(
- startup_channel_name,
- &listener,
- service_process.IOMessageLoopProxy());
+ startup_channel.reset(
+ new IPC::ChannelProxy(startup_channel_name,
+ IPC::Channel::MODE_CLIENT,
+ &listener,
+ service_process.IOMessageLoopProxy()));
main_message_loop.Run();
if (!Mock::VerifyAndClearExpectations(&server))
@@ -441,8 +442,9 @@
base::StringPrintf("%d.%p.%d",
base::GetCurrentProcId(), this,
base::RandInt(0, std::numeric_limits<int>::max()));
- startup_channel_ = IPC::ChannelProxy::CreateServer(
- startup_channel_id_, this, IOMessageLoopProxy());
+ startup_channel_.reset(new IPC::ChannelProxy(
+ startup_channel_id_, IPC::Channel::MODE_SERVER,
+ this, IOMessageLoopProxy()));
#if defined(OS_POSIX)
base::FileHandleMappingVector ipc_file_list;
@@ -464,10 +466,10 @@
EXPECT_TRUE(CheckServiceProcessReady());
EXPECT_TRUE(base::MessageLoopProxy::current().get());
ServiceProcessControl::GetInstance()->SetChannel(
- IPC::ChannelProxy::CreateNamedClient(
- GetServiceProcessChannel(),
- ServiceProcessControl::GetInstance(),
- IOMessageLoopProxy()));
+ new IPC::ChannelProxy(GetServiceProcessChannel(),
+ IPC::Channel::MODE_NAMED_CLIENT,
+ ServiceProcessControl::GetInstance(),
+ IOMessageLoopProxy()));
}
bool CloudPrintProxyPolicyStartupTest::Send(IPC::Message* message) {

Powered by Google App Engine
This is Rietveld 408576698