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

Unified Diff: mojo/services/view_manager/main.cc

Issue 308803002: Change type of interface created by mojo:view_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup 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/services/view_manager/main.cc
diff --git a/mojo/services/view_manager/main.cc b/mojo/services/view_manager/main.cc
index 4acd9924a08f6953bc14b3e10b09eb5943623be2..baa8d828466b33984d11d271e8e1ee2052e9c4bc 100644
--- a/mojo/services/view_manager/main.cc
+++ b/mojo/services/view_manager/main.cc
@@ -3,8 +3,7 @@
// found in the LICENSE file.
#include "mojo/public/cpp/application/application.h"
-#include "mojo/services/view_manager/root_node_manager.h"
-#include "mojo/services/view_manager/view_manager_connection.h"
+#include "mojo/services/view_manager/view_manager_init_connection.h"
namespace mojo {
namespace view_manager {
@@ -16,21 +15,21 @@ class ViewManagerApp : public Application {
virtual ~ViewManagerApp() {}
virtual void Initialize() MOJO_OVERRIDE {
- root_node_manager_.reset(new RootNodeManager(service_provider()));
- AddService<ViewManagerConnection>(root_node_manager_.get());
+ // TODO(sky): this needs some sort of authentication as well as making sure
+ // we only ever have one active at a time.
+ AddService<ViewManagerInitConnection>(service_provider());
}
private:
- scoped_ptr<RootNodeManager> root_node_manager_;
DISALLOW_COPY_AND_ASSIGN(ViewManagerApp);
};
-}
-}
+} // namespace service
+} // namespace view_manager
// static
Application* Application::Create() {
return new mojo::view_manager::service::ViewManagerApp();
}
-}
+} // namespace mojo
« no previous file with comments | « mojo/services/public/interfaces/view_manager/view_manager.mojom ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698