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

Side by Side Diff: components/user_manager/user_info_impl.h

Issue 2450183002: Rename UserInfo method GetEmail to GetDisplayEmail. (Closed)
Patch Set: Fix build Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
6 #define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ 6 #define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "components/signin/core/account_id/account_id.h" 12 #include "components/signin/core/account_id/account_id.h"
13 #include "components/user_manager/user_info.h" 13 #include "components/user_manager/user_info.h"
14 #include "components/user_manager/user_manager_export.h" 14 #include "components/user_manager/user_manager_export.h"
15 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
16 16
17 namespace user_manager { 17 namespace user_manager {
18 18
19 // Stub implementation of UserInfo interface. Used in tests. 19 // Stub implementation of UserInfo interface. Used in tests.
20 class USER_MANAGER_EXPORT UserInfoImpl : public UserInfo { 20 class USER_MANAGER_EXPORT UserInfoImpl : public UserInfo {
21 public: 21 public:
22 UserInfoImpl(); 22 UserInfoImpl();
23 ~UserInfoImpl() override; 23 ~UserInfoImpl() override;
24 24
25 // UserInfo: 25 // UserInfo:
26 base::string16 GetDisplayName() const override; 26 base::string16 GetDisplayName() const override;
27 base::string16 GetGivenName() const override; 27 base::string16 GetGivenName() const override;
28 std::string GetEmail() const override; 28 std::string GetDisplayEmail() const override;
29 const AccountId& GetAccountId() const override; 29 const AccountId& GetAccountId() const override;
30 const gfx::ImageSkia& GetImage() const override; 30 const gfx::ImageSkia& GetImage() const override;
31 31
32 private: 32 private:
33 const AccountId account_id_; 33 const AccountId account_id_;
34 gfx::ImageSkia user_image_; 34 gfx::ImageSkia user_image_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(UserInfoImpl); 36 DISALLOW_COPY_AND_ASSIGN(UserInfoImpl);
37 }; 37 };
38 38
39 } // namespace user_manager 39 } // namespace user_manager
40 40
41 #endif // COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ 41 #endif // COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698