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

Unified Diff: ash/system/user/tray_user.h

Issue 14756019: Adding new user menu section to the SystemTrayMenu & refactoring of user access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: ash/system/user/tray_user.h
diff --git a/ash/system/user/tray_user.h b/ash/system/user/tray_user.h
index 340ab2df9812b7459632a8be14319ee1e1281ce7..69ad22498b9255ddebf393a16a141fd378b7ce23 100644
--- a/ash/system/user/tray_user.h
+++ b/ash/system/user/tray_user.h
@@ -5,6 +5,7 @@
#ifndef ASH_SYSTEM_USER_TRAY_USER_H_
#define ASH_SYSTEM_USER_TRAY_USER_H_
+#include "ash/session_state_delegate.h"
#include "ash/system/tray/system_tray_item.h"
#include "ash/system/user/user_observer.h"
#include "base/compiler_specific.h"
@@ -25,7 +26,11 @@ class RoundedImageView;
class TrayUser : public SystemTrayItem,
public UserObserver {
public:
- explicit TrayUser(SystemTray* system_tray);
+ // The given |multiprofile_index| is the number of the user in a multi profile
+ // scenario. Index #0 is the running user, the other indices are other
+ // logged in users (if there are any). Only index #0 will add an icon to
+ // the system tray.
+ TrayUser(SystemTray* system_tray, MultiProfileIndex index);
virtual ~TrayUser();
private:
@@ -43,6 +48,9 @@ class TrayUser : public SystemTrayItem,
// Overridden from UserObserver.
virtual void OnUserUpdate() OVERRIDE;
+ // The user index to use.
+ MultiProfileIndex multiprofile_index_;
+
tray::UserView* user_;
// View that contains label and/or avatar.

Powered by Google App Engine
This is Rietveld 408576698