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

Unified Diff: services/shell/public/cpp/lib/shell_connection.cc

Issue 1899323002: Add mash shelf application id support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address simpler comments. Created 4 years, 8 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 | « mash/wm/user_window_controller_impl.cc ('k') | services/shell/public/cpp/shell_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/lib/shell_connection.cc
diff --git a/services/shell/public/cpp/lib/shell_connection.cc b/services/shell/public/cpp/lib/shell_connection.cc
index ff1451640641389828da4240e41c9947938d4f83..d1131283a19a05d83a786091db508a0a19437b37 100644
--- a/services/shell/public/cpp/lib/shell_connection.cc
+++ b/services/shell/public/cpp/lib/shell_connection.cc
@@ -49,6 +49,7 @@ void ShellConnection::SetAppTestConnectorForTesting(
void ShellConnection::Initialize(mojom::IdentityPtr identity,
uint32_t id,
const InitializeCallback& callback) {
+ identity_ = identity.To<Identity>();
if (!initialize_handler_.is_null())
initialize_handler_.Run();
@@ -57,7 +58,7 @@ void ShellConnection::Initialize(mojom::IdentityPtr identity,
DCHECK(binding_.is_bound());
binding_.set_connection_error_handler([this] { OnConnectionError(); });
- client_->Initialize(connector_.get(), identity.To<Identity>(), id);
+ client_->Initialize(connector_.get(), identity_, id);
}
void ShellConnection::AcceptConnection(
« no previous file with comments | « mash/wm/user_window_controller_impl.cc ('k') | services/shell/public/cpp/shell_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698