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

Unified Diff: mojo/shell/application_instance.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 | « mojo/services/network/network_service_delegate.cc ('k') | mojo/shell/application_manager_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_instance.cc
diff --git a/mojo/shell/application_instance.cc b/mojo/shell/application_instance.cc
index 8c3003dd60ea0f97dbfb77668d46abae05334213..8f4ce1b8ea2c1cff8853449301ba55d890c22f69 100644
--- a/mojo/shell/application_instance.cc
+++ b/mojo/shell/application_instance.cc
@@ -53,10 +53,9 @@ ApplicationInstance::~ApplicationInstance() {
}
void ApplicationInstance::InitializeApplication() {
- ShellPtr shell;
- binding_.Bind(GetProxy(&shell));
+ application_->Initialize(binding_.CreateInterfacePtrAndBind(),
+ identity_.url().spec());
binding_.set_connection_error_handler([this]() { OnConnectionError(); });
- application_->Initialize(std::move(shell), identity_.url().spec());
}
void ApplicationInstance::ConnectToClient(
« no previous file with comments | « mojo/services/network/network_service_delegate.cc ('k') | mojo/shell/application_manager_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698