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

Unified Diff: mojo/shell/context.cc

Issue 267293004: Wires up view manager to an actual display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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
« no previous file with comments | « mojo/services/view_manager/view_manager_connection.cc ('k') | mojo/shell/view_manager_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/context.cc
diff --git a/mojo/shell/context.cc b/mojo/shell/context.cc
index f5d405f5f1e312b23f222b3ae35682420d24daf5..9879a17732a72ae526305e095b48b181bfbf57d7 100644
--- a/mojo/shell/context.cc
+++ b/mojo/shell/context.cc
@@ -27,8 +27,7 @@
#endif // defined(OS_LINUX)
#if defined(USE_AURA)
-#include "mojo/services/view_manager/root_node_manager.h"
-#include "mojo/services/view_manager/view_manager_connection.h"
+#include "mojo/shell/view_manager_loader.h"
#endif
namespace mojo {
@@ -52,35 +51,6 @@ class Setup {
static base::LazyInstance<Setup> setup = LAZY_INSTANCE_INITIALIZER;
-#if defined(USE_AURA)
-class ViewManagerLoader : public ServiceLoader {
- public:
- ViewManagerLoader() {}
- virtual ~ViewManagerLoader() {}
-
- private:
- virtual void LoadService(ServiceManager* manager,
- const GURL& url,
- ScopedShellHandle shell_handle) OVERRIDE {
- scoped_ptr<Application> app(new Application(shell_handle.Pass()));
- app->AddServiceConnector(
- new ServiceConnector<services::view_manager::ViewManagerConnection,
- services::view_manager::RootNodeManager>(
- &root_node_manager_));
- apps_.push_back(app.release());
- }
-
- virtual void OnServiceError(ServiceManager* manager,
- const GURL& url) OVERRIDE {
- }
-
- services::view_manager::RootNodeManager root_node_manager_;
- ScopedVector<Application> apps_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewManagerLoader);
-};
-#endif
-
} // namespace
class Context::NativeViewportServiceLoader : public ServiceLoader {
« no previous file with comments | « mojo/services/view_manager/view_manager_connection.cc ('k') | mojo/shell/view_manager_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698