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

Unified Diff: mash/wm/window_manager_application.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 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 | « mandoline/ui/desktop_ui/browser_window.cc ('k') | media/mojo/services/media_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager_application.cc
diff --git a/mash/wm/window_manager_application.cc b/mash/wm/window_manager_application.cc
index 1d5da1614fc3fc69337ca4c60b2f5b854eae7aa9..88e7163d7f5d60109082702af970150d480c0f01 100644
--- a/mash/wm/window_manager_application.cc
+++ b/mash/wm/window_manager_application.cc
@@ -84,11 +84,9 @@ void WindowManagerApplication::Initialize(mojo::ApplicationImpl* app) {
make_scoped_ptr(new mojo::InterfaceRequest<mus::mojom::WindowManager>(
mojo::GetProxy(&window_manager))));
user_window_controller_.reset(new UserWindowControllerImpl());
- mus::mojom::WindowTreeHostClientPtr host_client;
- host_client_binding_.Bind(GetProxy(&host_client));
- mus::CreateSingleWindowTreeHost(app, std::move(host_client), this,
- &window_tree_host_, std::move(window_manager),
- window_manager_.get());
+ mus::CreateSingleWindowTreeHost(
+ app, host_client_binding_.CreateInterfacePtrAndBind(), this,
+ &window_tree_host_, std::move(window_manager), window_manager_.get());
}
bool WindowManagerApplication::ConfigureIncomingConnection(
« no previous file with comments | « mandoline/ui/desktop_ui/browser_window.cc ('k') | media/mojo/services/media_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698