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

Unified Diff: ash/common/wm_shell.cc

Issue 2741403004: mash: Update LoginStatus with session state updates (Closed)
Patch Set: Created 3 years, 9 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 | « ash/common/session/session_controller_unittest.cc ('k') | ash/mus/system_tray_delegate_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.cc
diff --git a/ash/common/wm_shell.cc b/ash/common/wm_shell.cc
index a9b44633f32e323e32530557ea88302b0ed5a957..08ef8c000944ce10b6e043f84a5d5e4cf19b86a6 100644
--- a/ash/common/wm_shell.cc
+++ b/ash/common/wm_shell.cc
@@ -303,6 +303,13 @@ void WmShell::SessionStateChanged(session_manager::SessionState state) {
// multiple times (e.g. initial login vs. multiprofile add session).
if (state == session_manager::SessionState::ACTIVE)
CreateShelfView();
+
+ // Only trigger an update in mash because with classic ash chrome calls
+ // UpdateAfterLoginStatusChange() directly.
+ if (IsRunningInMash()) {
+ // TODO(jamescook): Should this call Shell::OnLoginStatusChanged() too?
+ UpdateAfterLoginStatusChange(session_controller_->GetLoginStatus());
+ }
}
} // namespace ash
« no previous file with comments | « ash/common/session/session_controller_unittest.cc ('k') | ash/mus/system_tray_delegate_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698