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

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

Issue 379803004: Move UserInfo to user_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « components/user_manager/user_info_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/user_manager/user_info_impl.h"
6
7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h"
9
10 namespace user_manager {
11
12 UserInfoImpl::UserInfoImpl() {
13 }
14
15 UserInfoImpl::~UserInfoImpl() {
16 }
17
18 base::string16 UserInfoImpl::GetDisplayName() const {
19 return base::UTF8ToUTF16("stub-user");
20 }
21
22 base::string16 UserInfoImpl::GetGivenName() const {
23 return base::UTF8ToUTF16("Stub");
24 }
25
26 std::string UserInfoImpl::GetEmail() const {
27 return "stub-user@domain.com";
28 }
29
30 std::string UserInfoImpl::GetUserID() const {
31 return GetEmail();
32 }
33
34 const gfx::ImageSkia& UserInfoImpl::GetImage() const {
35 return user_image_;
36 }
37
38 } // namespace user_manager
OLDNEW
« no previous file with comments | « components/user_manager/user_info_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698