Index: chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc |
diff --git a/chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc b/chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc |
index 40a9647fcb9136631f0e184f7004404c6dcf5cf2..e164538c3ff8567b858d56d19b133ecf04617b7f 100644 |
--- a/chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc |
+++ b/chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc |
@@ -341,8 +341,9 @@ class PrefProxyConfigTrackerImplCommandLineTest |
command_line_.AppendSwitch(name); |
} |
scoped_refptr<PrefRegistrySimple> registry = new PrefRegistrySimple; |
- pref_service_.reset(PrefServiceMockBuilder().WithCommandLine(&command_line_) |
- .Create(registry.get())); |
+ PrefServiceMockBuilder builder; |
+ builder.SetCommandLine(&command_line_); |
+ pref_service_ = builder.Create(registry.get()).Pass(); |
Init(pref_service_.get(), registry.get()); |
} |