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

Unified Diff: trunk/src/ash/system/user/accounts_detailed_view.cc

Issue 260783002: Revert 267158 "CleanUp: Introduce UserInfo. Move session_state s..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « trunk/src/ash/system/tray/default_system_tray_delegate.cc ('k') | trunk/src/ash/system/user/config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/system/user/accounts_detailed_view.cc
===================================================================
--- trunk/src/ash/system/user/accounts_detailed_view.cc (revision 267249)
+++ trunk/src/ash/system/user/accounts_detailed_view.cc (working copy)
@@ -7,7 +7,6 @@
#include <vector>
#include "ash/multi_profile_uma.h"
-#include "ash/session/user_info.h"
#include "ash/shell.h"
#include "ash/system/tray/fixed_sized_scroll_view.h"
#include "ash/system/tray/hover_highlight_view.h"
@@ -44,10 +43,8 @@
account_list_(NULL),
add_account_button_(NULL),
add_user_button_(NULL) {
- std::string user_id = Shell::GetInstance()
- ->session_state_delegate()
- ->GetUserInfo(0)
- ->GetUserID();
+ std::string user_id =
+ Shell::GetInstance()->session_state_delegate()->GetUserID(0);
delegate_ =
Shell::GetInstance()->system_tray_delegate()->GetUserAccountsDelegate(
user_id);
@@ -120,12 +117,11 @@
SessionStateDelegate* session_state_delegate =
Shell::GetInstance()->session_state_delegate();
HoverHighlightView* add_account_button = new HoverHighlightView(this);
- const UserInfo* user_info = session_state_delegate->GetUserInfo(0);
- base::string16 user_name = user_info->GetGivenName();
+ base::string16 user_name = session_state_delegate->GetUserGivenName(0);
if (user_name.empty())
- user_name = user_info->GetDisplayName();
+ user_name = session_state_delegate->GetUserDisplayName(0);
if (user_name.empty())
- user_name = base::ASCIIToUTF16(user_info->GetEmail());
+ user_name = base::ASCIIToUTF16(session_state_delegate->GetUserEmail(0));
add_account_button->AddLabel(
l10n_util::GetStringFUTF16(IDS_ASH_STATUS_TRAY_ADD_ACCOUNT_LABEL,
user_name),
« no previous file with comments | « trunk/src/ash/system/tray/default_system_tray_delegate.cc ('k') | trunk/src/ash/system/user/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698