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

Unified Diff: shell/shell_test_base.h

Issue 1118843003: Remove some InterfacePtr<> methods which directly deal with message pipe handles. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « shell/child_process_host.cc ('k') | sky/engine/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « shell/child_process_host.cc ('k') | sky/engine/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698