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

Unified Diff: mojo/public/cpp/shell/lib/service_connector.cc

Issue 289063015: Mojo: Remove SetClient from generated interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
Index: mojo/public/cpp/shell/lib/service_connector.cc
diff --git a/mojo/public/cpp/shell/lib/service_connector.cc b/mojo/public/cpp/shell/lib/service_connector.cc
index 18f34b6d76bd7e680eda149510b37071db53dda8..bdd1f3f42d1edaa0a053641c00fa943e91662494 100644
--- a/mojo/public/cpp/shell/lib/service_connector.cc
+++ b/mojo/public/cpp/shell/lib/service_connector.cc
@@ -7,9 +7,9 @@
namespace mojo {
namespace internal {
-ServiceConnectorBase::Owner::Owner(ScopedMessagePipeHandle shell_handle)
- : shell_(MakeProxy<Shell>(shell_handle.Pass())) {
- shell_->SetClient(this);
+ServiceConnectorBase::Owner::Owner(ScopedMessagePipeHandle shell_handle) {
+ shell_.Bind(shell_handle.Pass());
+ shell_.set_client(this);
}
ServiceConnectorBase::Owner::~Owner() {}

Powered by Google App Engine
This is Rietveld 408576698