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

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: rebase + fix build Created 6 years, 11 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 | « mojo/services/native_viewport/native_viewport_service.cc ('k') | mojo/shell/service_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/service_manager.cc
diff --git a/mojo/shell/service_manager.cc b/mojo/shell/service_manager.cc
index cea78daade0ffbcb55fbb709a115b58337ff76f1..55fd41f04df08cbce22b6d548767f07328bfd203 100644
--- a/mojo/shell/service_manager.cc
+++ b/mojo/shell/service_manager.cc
@@ -11,14 +11,13 @@
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, pipe.handle1.Pass());
}
virtual ~Service() {}
« no previous file with comments | « mojo/services/native_viewport/native_viewport_service.cc ('k') | mojo/shell/service_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698