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

Unified Diff: trunk/src/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc

Issue 304153005: Revert 273575 "Introduce IPC::Channel::Create*() to ensure it be..." (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/utility/importer/firefox_importer_unittest_utils_mac.cc
===================================================================
--- trunk/src/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc (revision 273593)
+++ trunk/src/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc (working copy)
@@ -130,7 +130,9 @@
message_loop_.reset(new base::MessageLoopForIO());
listener_.reset(new FFDecryptorServerChannelListener());
- channel_ = IPC::Channel::CreateServer(kTestChannelID, listener_.get());
+ channel_.reset(new IPC::Channel(kTestChannelID,
+ IPC::Channel::MODE_SERVER,
+ listener_.get()));
CHECK(channel_->Connect());
listener_->SetSender(channel_.get());
@@ -262,10 +264,9 @@
base::MessageLoopForIO main_message_loop;
FFDecryptorClientChannelListener listener;
- scoped_ptr<IPC::Channel> channel = IPC::Channel::CreateClient(
- kTestChannelID, &listener);
- CHECK(channel->Connect());
- listener.SetSender(channel.get());
+ IPC::Channel channel(kTestChannelID, IPC::Channel::MODE_CLIENT, &listener);
+ CHECK(channel.Connect());
+ listener.SetSender(&channel);
// run message loop
base::MessageLoop::current()->Run();
« no previous file with comments | « trunk/src/chrome/browser/pepper_flash_settings_manager.cc ('k') | trunk/src/components/nacl/broker/nacl_broker_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698