Index: mojo/public/cpp/bindings/interface_request.h |
diff --git a/mojo/public/cpp/bindings/interface_request.h b/mojo/public/cpp/bindings/interface_request.h |
index 6b7d3033c9d36d206b67d3f77a2e07dce0ee6892..46690b1a95c565e95e20d04d0631d085045af9f1 100644 |
--- a/mojo/public/cpp/bindings/interface_request.h |
+++ b/mojo/public/cpp/bindings/interface_request.h |
@@ -60,12 +60,12 @@ InterfaceRequest<Interface> MakeRequest(ScopedMessagePipeHandle handle) { |
// |
// InterfacePtr<Foo> foo = ...; |
// InterfacePtr<Bar> bar; |
-// foo->CreateBar(Get(&bar)); |
+// foo->CreateBar(GetProxy(&bar)); |
// |
// Upon return from CreateBar, |bar| is ready to have methods called on it. |
// |
template <typename Interface> |
-InterfaceRequest<Interface> Get(InterfacePtr<Interface>* ptr) { |
+InterfaceRequest<Interface> GetProxy(InterfacePtr<Interface>* ptr) { |
MessagePipe pipe; |
ptr->Bind(pipe.handle0.Pass()); |
return MakeRequest<Interface>(pipe.handle1.Pass()); |