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

Side by Side Diff: ash/system/tray/test_system_tray_delegate.cc

Issue 11377133: Customize user details in ash system bubble for public account mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 #include "ash/system/tray/test_system_tray_delegate.h" 5 #include "ash/system/tray/test_system_tray_delegate.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/volume_control_delegate.h" 8 #include "ash/volume_control_delegate.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 const gfx::ImageSkia& TestSystemTrayDelegate::GetUserImage() const { 78 const gfx::ImageSkia& TestSystemTrayDelegate::GetUserImage() const {
79 return null_image_; 79 return null_image_;
80 } 80 }
81 81
82 user::LoginStatus TestSystemTrayDelegate::GetUserLoginStatus() const { 82 user::LoginStatus TestSystemTrayDelegate::GetUserLoginStatus() const {
83 return Shell::GetInstance()->IsScreenLocked() ? user::LOGGED_IN_LOCKED : 83 return Shell::GetInstance()->IsScreenLocked() ? user::LOGGED_IN_LOCKED :
84 user::LOGGED_IN_USER; 84 user::LOGGED_IN_USER;
85 } 85 }
86 86
87 const std::string TestSystemTrayDelegate::GetEnterpriseDomain() const {
88 return "";
89 }
90
87 bool TestSystemTrayDelegate::SystemShouldUpgrade() const { 91 bool TestSystemTrayDelegate::SystemShouldUpgrade() const {
88 return true; 92 return true;
89 } 93 }
90 94
91 base::HourClockType TestSystemTrayDelegate::GetHourClockType() const { 95 base::HourClockType TestSystemTrayDelegate::GetHourClockType() const {
92 return base::k24HourClock; 96 return base::k24HourClock;
93 } 97 }
94 98
95 PowerSupplyStatus TestSystemTrayDelegate::GetPowerSupplyStatus() const { 99 PowerSupplyStatus TestSystemTrayDelegate::GetPowerSupplyStatus() const {
96 return PowerSupplyStatus(); 100 return PowerSupplyStatus();
(...skipping 19 matching lines...) Expand all
116 120
117 void TestSystemTrayDelegate::ShowDriveSettings() { 121 void TestSystemTrayDelegate::ShowDriveSettings() {
118 } 122 }
119 123
120 void TestSystemTrayDelegate::ShowIMESettings() { 124 void TestSystemTrayDelegate::ShowIMESettings() {
121 } 125 }
122 126
123 void TestSystemTrayDelegate::ShowHelp() { 127 void TestSystemTrayDelegate::ShowHelp() {
124 } 128 }
125 129
130 void TestSystemTrayDelegate::ShowPublicAccountInfo() {
131 }
132
126 void TestSystemTrayDelegate::ShutDown() { 133 void TestSystemTrayDelegate::ShutDown() {
127 MessageLoop::current()->Quit(); 134 MessageLoop::current()->Quit();
128 } 135 }
129 136
130 void TestSystemTrayDelegate::SignOut() { 137 void TestSystemTrayDelegate::SignOut() {
131 MessageLoop::current()->Quit(); 138 MessageLoop::current()->Quit();
132 } 139 }
133 140
134 void TestSystemTrayDelegate::RequestLockScreen() { 141 void TestSystemTrayDelegate::RequestLockScreen() {
135 } 142 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 return volume_control_delegate_.get(); 285 return volume_control_delegate_.get();
279 } 286 }
280 287
281 void TestSystemTrayDelegate::SetVolumeControlDelegate( 288 void TestSystemTrayDelegate::SetVolumeControlDelegate(
282 scoped_ptr<VolumeControlDelegate> delegate) { 289 scoped_ptr<VolumeControlDelegate> delegate) {
283 volume_control_delegate_ = delegate.Pass(); 290 volume_control_delegate_ = delegate.Pass();
284 } 291 }
285 292
286 } // namespace test 293 } // namespace test
287 } // namespace ash 294 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698