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

Side by Side Diff: ash/common/test/test_session_state_delegate.cc

Issue 2450183002: Rename UserInfo method GetEmail to GetDisplayEmail. (Closed)
Patch Set: Update comment 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "ash/common/test/test_session_state_delegate.h" 5 #include "ash/common/test/test_session_state_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/common/login_status.h" 10 #include "ash/common/login_status.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 base::string16 GetDisplayName() const override { 49 base::string16 GetDisplayName() const override {
50 return base::UTF8ToUTF16("Über tray Über tray Über tray Über tray"); 50 return base::UTF8ToUTF16("Über tray Über tray Über tray Über tray");
51 } 51 }
52 52
53 base::string16 GetGivenName() const override { 53 base::string16 GetGivenName() const override {
54 return base::UTF8ToUTF16("Über Über Über Über"); 54 return base::UTF8ToUTF16("Über Über Über Über");
55 } 55 }
56 56
57 std::string GetEmail() const override { return display_email_; } 57 std::string GetDisplayEmail() const override { return display_email_; }
58 58
59 const AccountId& GetAccountId() const override { return account_id_; } 59 const AccountId& GetAccountId() const override { return account_id_; }
60 60
61 const gfx::ImageSkia& GetImage() const override { return user_image_; } 61 const gfx::ImageSkia& GetImage() const override { return user_image_; }
62 62
63 // A test user image. 63 // A test user image.
64 gfx::ImageSkia user_image_; 64 gfx::ImageSkia user_image_;
65 65
66 std::string display_email_; 66 std::string display_email_;
67 const AccountId account_id_; 67 const AccountId account_id_;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 247 }
248 248
249 void TestSessionStateDelegate::AddSessionStateObserver( 249 void TestSessionStateDelegate::AddSessionStateObserver(
250 SessionStateObserver* observer) {} 250 SessionStateObserver* observer) {}
251 251
252 void TestSessionStateDelegate::RemoveSessionStateObserver( 252 void TestSessionStateDelegate::RemoveSessionStateObserver(
253 SessionStateObserver* observer) {} 253 SessionStateObserver* observer) {}
254 254
255 } // namespace test 255 } // namespace test
256 } // namespace ash 256 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/user/user_card_view.cc ('k') | chrome/browser/ui/ash/multi_user/multi_user_context_menu_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698