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

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

Issue 12843019: Suppress error notifications and detailed view during OOBE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TrayAccessibilityTest Created 7 years, 9 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
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 <string> 7 #include <string>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_delegate.h" 10 #include "ash/shell_delegate.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // but there's no browser session available yet so use SessionStarted(). 89 // but there's no browser session available yet so use SessionStarted().
90 if (!Shell::GetInstance()->delegate()->IsSessionStarted()) 90 if (!Shell::GetInstance()->delegate()->IsSessionStarted())
91 return ash::user::LOGGED_IN_NONE; 91 return ash::user::LOGGED_IN_NONE;
92 if (Shell::GetInstance()->IsScreenLocked()) 92 if (Shell::GetInstance()->IsScreenLocked())
93 return user::LOGGED_IN_LOCKED; 93 return user::LOGGED_IN_LOCKED;
94 // TODO(nkostylev): Support LOGGED_IN_OWNER, LOGGED_IN_GUEST, LOGGED_IN_KIOSK, 94 // TODO(nkostylev): Support LOGGED_IN_OWNER, LOGGED_IN_GUEST, LOGGED_IN_KIOSK,
95 // LOGGED_IN_PUBLIC. 95 // LOGGED_IN_PUBLIC.
96 return user::LOGGED_IN_USER; 96 return user::LOGGED_IN_USER;
97 } 97 }
98 98
99 bool TestSystemTrayDelegate::IsOobeCompleted() const {
100 return true;
101 }
102
99 void TestSystemTrayDelegate::ChangeProfilePicture() { 103 void TestSystemTrayDelegate::ChangeProfilePicture() {
100 } 104 }
101 105
102 const std::string TestSystemTrayDelegate::GetEnterpriseDomain() const { 106 const std::string TestSystemTrayDelegate::GetEnterpriseDomain() const {
103 return std::string(); 107 return std::string();
104 } 108 }
105 109
106 const string16 TestSystemTrayDelegate::GetEnterpriseMessage() const { 110 const string16 TestSystemTrayDelegate::GetEnterpriseMessage() const {
107 return string16(); 111 return string16();
108 } 112 }
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 string16 TestSystemTrayDelegate::FormatTimeDuration( 351 string16 TestSystemTrayDelegate::FormatTimeDuration(
348 const base::TimeDelta& delta) const { 352 const base::TimeDelta& delta) const {
349 return string16(); 353 return string16();
350 } 354 }
351 355
352 void TestSystemTrayDelegate::MaybeSpeak(const std::string& utterance) const { 356 void TestSystemTrayDelegate::MaybeSpeak(const std::string& utterance) const {
353 } 357 }
354 358
355 } // namespace test 359 } // namespace test
356 } // namespace ash 360 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/test_system_tray_delegate.h ('k') | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698