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

Unified Diff: mandoline/ui/desktop_ui/browser_window.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
Index: mandoline/ui/desktop_ui/browser_window.cc
diff --git a/mandoline/ui/desktop_ui/browser_window.cc b/mandoline/ui/desktop_ui/browser_window.cc
index 0285ec8b826e538ce21841475e148962be8d6918..289edbe86aab729ac7cc8f617fdd8e5da996ea75 100644
--- a/mandoline/ui/desktop_ui/browser_window.cc
+++ b/mandoline/ui/desktop_ui/browser_window.cc
@@ -112,10 +112,9 @@ BrowserWindow::BrowserWindow(mojo::ApplicationImpl* app,
find_active_(0),
find_count_(0),
web_view_(this) {
- mus::mojom::WindowTreeHostClientPtr host_client;
- host_client_binding_.Bind(GetProxy(&host_client));
- mus::CreateWindowTreeHost(host_factory, std::move(host_client), this, &host_,
- nullptr, nullptr);
+ mus::CreateWindowTreeHost(host_factory,
+ host_client_binding_.CreateInterfacePtrAndBind(),
+ this, &host_, nullptr, nullptr);
}
void BrowserWindow::LoadURL(const GURL& url) {
« no previous file with comments | « extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc ('k') | mash/wm/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698