Index: shell/shell_test_base.h |
diff --git a/shell/shell_test_base.h b/shell/shell_test_base.h |
index 746f9783db967ee697850541d5db2160806383fb..2ba4321cf140f6600a229218e346c2b37e4fabbe 100644 |
--- a/shell/shell_test_base.h |
+++ b/shell/shell_test_base.h |
@@ -36,7 +36,9 @@ class ShellTestBase : public testing::Test { |
template <typename Interface> |
void ConnectToService(const GURL& application_url, |
mojo::InterfacePtr<Interface>* ptr) { |
- ptr->Bind(ConnectToService(application_url, Interface::Name_).Pass()); |
+ mojo::InterfacePtrInfo<Interface> interface( |
+ ConnectToService(application_url, Interface::Name_).Pass(), 0u); |
+ ptr->Bind(interface.Pass()); |
} |
base::MessageLoop* message_loop() { return &message_loop_; } |