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

Unified Diff: mojo/shell/service_manager.cc

Issue 109103003: Mojo: abstract interface implementation from generated Stub classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/shell/service_manager.cc
diff --git a/mojo/shell/service_manager.cc b/mojo/shell/service_manager.cc
index cb774ae0bdbdbe60866483ff78e5993be97f1d58..4e95bec41bb1b7e3b67c0df50f281332a56e22f3 100644
--- a/mojo/shell/service_manager.cc
+++ b/mojo/shell/service_manager.cc
@@ -20,14 +20,13 @@ typedef MojoResult (*MojoMainFunction)(MojoHandle pipe);
namespace mojo {
namespace shell {
-class ServiceManager::Service : public ShellStub {
+class ServiceManager::Service : public Shell {
public:
Service(ServiceManager* manager, const GURL& url)
: manager_(manager),
url_(url) {
MessagePipe pipe;
- shell_client_.reset(pipe.handle0.Pass());
- shell_client_.SetPeer(this);
+ shell_client_.reset(pipe.handle0.Pass(), this);
manager_->GetLoaderForURL(url)->Load(url, manager_, pipe.handle1.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698