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

Side by Side Diff: ash/session_state_delegate_stub.cc

Issue 210903003: Implemented system tray UI for new account management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge conflicts resolved. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/session_state_delegate_stub.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/session_state_delegate_stub.h" 5 #include "ash/session_state_delegate_stub.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell/example_factory.h" 8 #include "ash/shell/example_factory.h"
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 bool SessionStateDelegateStub::IsUserSessionBlocked() const { 68 bool SessionStateDelegateStub::IsUserSessionBlocked() const {
69 return !IsActiveUserSessionStarted() || IsScreenLocked(); 69 return !IsActiveUserSessionStarted() || IsScreenLocked();
70 } 70 }
71 71
72 const base::string16 SessionStateDelegateStub::GetUserDisplayName( 72 const base::string16 SessionStateDelegateStub::GetUserDisplayName(
73 MultiProfileIndex index) const { 73 MultiProfileIndex index) const {
74 return base::UTF8ToUTF16("stub-user"); 74 return base::UTF8ToUTF16("stub-user");
75 } 75 }
76 76
77 const base::string16 SessionStateDelegateStub::GetUserGivenName(
78 MultiProfileIndex index) const {
79 return base::UTF8ToUTF16("Stub");
80 }
81
77 const std::string SessionStateDelegateStub::GetUserEmail( 82 const std::string SessionStateDelegateStub::GetUserEmail(
78 MultiProfileIndex index) const { 83 MultiProfileIndex index) const {
79 return "stub-user@domain.com"; 84 return "stub-user@domain.com";
80 } 85 }
81 86
82 const std::string SessionStateDelegateStub::GetUserID( 87 const std::string SessionStateDelegateStub::GetUserID(
83 MultiProfileIndex index) const { 88 MultiProfileIndex index) const {
84 return GetUserEmail(index); 89 return GetUserEmail(index);
85 } 90 }
86 91
(...skipping 14 matching lines...) Expand all
101 106
102 void SessionStateDelegateStub::AddSessionStateObserver( 107 void SessionStateDelegateStub::AddSessionStateObserver(
103 ash::SessionStateObserver* observer) { 108 ash::SessionStateObserver* observer) {
104 } 109 }
105 110
106 void SessionStateDelegateStub::RemoveSessionStateObserver( 111 void SessionStateDelegateStub::RemoveSessionStateObserver(
107 ash::SessionStateObserver* observer) { 112 ash::SessionStateObserver* observer) {
108 } 113 }
109 114
110 } // namespace ash 115 } // namespace ash
OLDNEW
« no previous file with comments | « ash/session_state_delegate_stub.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698