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

Unified Diff: chrome/browser/mojo_runner_state.cc

Issue 1416373010: Implement a MusBrowserFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome
Patch Set: . Created 5 years, 1 month 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 | « chrome/browser/DEPS ('k') | chrome/browser/ui/views/frame/browser_frame_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mojo_runner_state.cc
diff --git a/chrome/browser/mojo_runner_state.cc b/chrome/browser/mojo_runner_state.cc
index 593d043424f91a808cb6d6347ace14010db30cf7..4d9461fa3039071f2481d0d0c81d89f23ca3bc49 100644
--- a/chrome/browser/mojo_runner_state.cc
+++ b/chrome/browser/mojo_runner_state.cc
@@ -4,9 +4,12 @@
#include "chrome/browser/mojo_runner_state.h"
+#include "components/mus/public/interfaces/window_manager.mojom.h"
#include "mojo/application/public/cpp/application_delegate.h"
#include "mojo/application/public/cpp/application_impl.h"
+#include "mojo/converters/network/network_type_converters.h"
#include "mojo/runner/child/runner_connection.h"
+#include "ui/views/mus/window_manager_connection.h"
class ChromeApplicationDelegate : public mojo::ApplicationDelegate {
public:
@@ -15,7 +18,11 @@ class ChromeApplicationDelegate : public mojo::ApplicationDelegate {
private:
void Initialize(mojo::ApplicationImpl* application) override {
- // TODO(beng): Connect to the window manager.
+ mus::mojom::WindowManagerPtr window_manager;
+ application->ConnectToService(
+ mojo::URLRequest::From(std::string("mojo:example_wm")),
+ &window_manager);
+ views::WindowManagerConnection::Create(window_manager.Pass(), application);
}
bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override {
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/ui/views/frame/browser_frame_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698