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

Unified Diff: mojo/public/shell/lib/application.cc

Issue 162213002: Change mojo demo apps to use Application. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add shell() to ServiceFactory::Owner Created 6 years, 10 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/public/shell/application.h ('k') | mojo/public/shell/lib/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/shell/lib/application.cc
diff --git a/mojo/public/shell/lib/application.cc b/mojo/public/shell/lib/application.cc
index dde322762c7b364bac886bdfc700c3e5d37fc7f5..1baff5226dccc5ce0ccd195470435556a9d8cf39 100644
--- a/mojo/public/shell/lib/application.cc
+++ b/mojo/public/shell/lib/application.cc
@@ -7,11 +7,12 @@
namespace mojo {
Application::Application(ScopedShellHandle shell_handle)
- : shell_(shell_handle.Pass(), this) {
+ : internal::ServiceFactoryBase::Owner(shell_handle.Pass()) {
}
Application::Application(MojoHandle shell_handle)
- : shell_(mojo::MakeScopedHandle(ShellHandle(shell_handle)).Pass()) {}
+ : internal::ServiceFactoryBase::Owner(
+ mojo::MakeScopedHandle(ShellHandle(shell_handle)).Pass()) {}
Application::~Application() {
for (ServiceFactoryList::iterator it = service_factories_.begin();
@@ -20,10 +21,6 @@ Application::~Application() {
}
}
-Shell* Application::GetShell() {
- return shell_.get();
-}
-
void Application::AddServiceFactory(
internal::ServiceFactoryBase* service_factory) {
service_factories_.push_back(service_factory);
« no previous file with comments | « mojo/public/shell/application.h ('k') | mojo/public/shell/lib/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698