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

Unified Diff: mash/screenlock/screenlock.cc

Issue 2435153004: Change Service contract to pass ServiceInfo instead of Identity (Closed)
Patch Set: . Created 4 years, 2 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/screenlock/screenlock.h ('k') | mash/session/session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/screenlock/screenlock.cc
diff --git a/mash/screenlock/screenlock.cc b/mash/screenlock/screenlock.cc
index be29c8d1d252470fa14e2dbaf152dbea70989a81..87e6802f248108311550f324967fd26b1840b8f6 100644
--- a/mash/screenlock/screenlock.cc
+++ b/mash/screenlock/screenlock.cc
@@ -73,8 +73,8 @@ class ScreenlockView : public views::WidgetDelegateView,
Screenlock::Screenlock() {}
Screenlock::~Screenlock() {}
-void Screenlock::OnStart(const service_manager::Identity& identity) {
- tracing_.Initialize(connector(), identity.name());
+void Screenlock::OnStart(const service_manager::ServiceInfo& info) {
+ tracing_.Initialize(connector(), info.identity.name());
mash::session::mojom::SessionPtr session;
connector()->ConnectToInterface("service:mash_session", &session);
@@ -84,7 +84,7 @@ void Screenlock::OnStart(const service_manager::Identity& identity) {
aura_init_.reset(
new views::AuraInit(connector(), "views_mus_resources.pak"));
window_manager_connection_ =
- views::WindowManagerConnection::Create(connector(), identity);
+ views::WindowManagerConnection::Create(connector(), info.identity);
views::Widget* widget = new views::Widget;
views::Widget::InitParams params(
« no previous file with comments | « mash/screenlock/screenlock.h ('k') | mash/session/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698