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

Unified Diff: chrome/browser/ui/ash/session_controller_client.cc

Issue 2822033002: cros: Use SessionController to enable system tray settings / notifications tray (Closed)
Patch Set: Created 3 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
Index: chrome/browser/ui/ash/session_controller_client.cc
diff --git a/chrome/browser/ui/ash/session_controller_client.cc b/chrome/browser/ui/ash/session_controller_client.cc
index 696beea7bbe550cc7a42cb7011e68df6d4717842..60d605c8a48a6d01859677ccfe44f9d07040a4db 100644
--- a/chrome/browser/ui/ash/session_controller_client.cc
+++ b/chrome/browser/ui/ash/session_controller_client.cc
@@ -12,6 +12,8 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/chromeos/login/user_flow.h"
+#include "chrome/browser/chromeos/login/users/chrome_user_manager.h"
#include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/profiles/profile.h"
@@ -68,6 +70,12 @@ ash::mojom::UserSessionPtr UserToUserSession(const User& user) {
IDR_PROFILE_PICTURE_LOADING);
}
+ chromeos::UserFlow* const user_flow =
+ chromeos::ChromeUserManager::Get()->GetUserFlow(user.GetAccountId());
+ session->should_enable_settings = user_flow->ShouldEnableSettings();
+ session->should_show_notification_tray =
+ user_flow->ShouldShowNotificationTray();
+
return session;
}

Powered by Google App Engine
This is Rietveld 408576698