Index: chrome/utility/importer/firefox_importer_unittest_utils_mac.cc |
diff --git a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc |
index 5c385ded5e80e849d962f797e6f5072acbd16cce..9608f63c76161ffaf40e4d12b0302b6f858f2b26 100644 |
--- a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc |
+++ b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc |
@@ -130,9 +130,7 @@ bool FFUnitTestDecryptorProxy::Setup(const base::FilePath& nss_path) { |
message_loop_.reset(new base::MessageLoopForIO()); |
listener_.reset(new FFDecryptorServerChannelListener()); |
- channel_.reset(new IPC::Channel(kTestChannelID, |
- IPC::Channel::MODE_SERVER, |
- listener_.get())); |
+ channel_ = IPC::Channel::CreateServer(kTestChannelID, listener_.get()); |
CHECK(channel_->Connect()); |
listener_->SetSender(channel_.get()); |
@@ -264,9 +262,10 @@ MULTIPROCESS_IPC_TEST_MAIN(NSSDecrypterChildProcess) { |
base::MessageLoopForIO main_message_loop; |
FFDecryptorClientChannelListener listener; |
- IPC::Channel channel(kTestChannelID, IPC::Channel::MODE_CLIENT, &listener); |
- CHECK(channel.Connect()); |
- listener.SetSender(&channel); |
+ scoped_ptr<IPC::Channel> channel = IPC::Channel::CreateClient( |
+ kTestChannelID, &listener); |
+ CHECK(channel->Connect()); |
+ listener.SetSender(channel.get()); |
// run message loop |
base::MessageLoop::current()->Run(); |