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(); |