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

Side by Side Diff: chrome/browser/chromeos/login/user.h

Issue 10541036: Show account part of the display email when real name is not available. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comments Created 8 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 DEFAULT = 2, 47 DEFAULT = 2,
48 UNKNOWN = 3 48 UNKNOWN = 3
49 }; 49 };
50 50
51 // The email the user used to log in. 51 // The email the user used to log in.
52 const std::string& email() const { return email_; } 52 const std::string& email() const { return email_; }
53 53
54 // Returns the human name to display for this user. 54 // Returns the human name to display for this user.
55 string16 GetDisplayName() const; 55 string16 GetDisplayName() const;
56 56
57 // Returns the account name part of the email. 57 // Returns the account name part of the email. Use the display form of the
58 std::string GetAccountName() const; 58 // email if available and use_display_name == true. Otherwise use canonical.
59 std::string GetAccountName(bool use_display_email) const;
59 60
60 // The image for this user. 61 // The image for this user.
61 const gfx::ImageSkia& image() const { return image_; } 62 const gfx::ImageSkia& image() const { return image_; }
62 int image_index() const { return image_index_; } 63 int image_index() const { return image_index_; }
63 64
64 // The thumbnail of user custom wallpaper. 65 // The thumbnail of user custom wallpaper.
65 const SkBitmap& wallpaper_thumbnail() const { return wallpaper_thumbnail_; } 66 const SkBitmap& wallpaper_thumbnail() const { return wallpaper_thumbnail_; }
66 67
67 // True if user image is a stub (while real image is being loaded from file). 68 // True if user image is a stub (while real image is being loaded from file).
68 bool image_is_stub() const { return image_is_stub_; } 69 bool image_is_stub() const { return image_is_stub_; }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 DISALLOW_COPY_AND_ASSIGN(User); 134 DISALLOW_COPY_AND_ASSIGN(User);
134 }; 135 };
135 136
136 // List of known users. 137 // List of known users.
137 typedef std::vector<User*> UserList; 138 typedef std::vector<User*> UserList;
138 139
139 } // namespace chromeos 140 } // namespace chromeos
140 141
141 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 142 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/onc_network_parser.cc ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698