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

Side by Side Diff: ash/system/chromeos/tray_display.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/system/date/date_default_view.cc » ('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) 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/chromeos/tray_display.h" 5 #include "ash/system/chromeos/tray_display.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/system/system_notifier.h" 10 #include "ash/system/system_notifier.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // switch is intentionally introduced without default, to cause an error when 111 // switch is intentionally introduced without default, to cause an error when
112 // a new type of login status is introduced. 112 // a new type of login status is introduced.
113 switch (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus()) { 113 switch (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus()) {
114 case user::LOGGED_IN_NONE: 114 case user::LOGGED_IN_NONE:
115 case user::LOGGED_IN_LOCKED: 115 case user::LOGGED_IN_LOCKED:
116 return; 116 return;
117 117
118 case user::LOGGED_IN_USER: 118 case user::LOGGED_IN_USER:
119 case user::LOGGED_IN_OWNER: 119 case user::LOGGED_IN_OWNER:
120 case user::LOGGED_IN_GUEST: 120 case user::LOGGED_IN_GUEST:
121 case user::LOGGED_IN_RETAIL_MODE:
122 case user::LOGGED_IN_PUBLIC: 121 case user::LOGGED_IN_PUBLIC:
123 case user::LOGGED_IN_SUPERVISED: 122 case user::LOGGED_IN_SUPERVISED:
124 case user::LOGGED_IN_KIOSK_APP: 123 case user::LOGGED_IN_KIOSK_APP:
125 ash::SystemTrayDelegate* delegate = 124 ash::SystemTrayDelegate* delegate =
126 Shell::GetInstance()->system_tray_delegate(); 125 Shell::GetInstance()->system_tray_delegate();
127 if (delegate->ShouldShowSettings()) 126 if (delegate->ShouldShowSettings())
128 delegate->ShowDisplaySettings(); 127 delegate->ShowDisplaySettings();
129 } 128 }
130 } 129 }
131 130
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) { 440 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) {
442 views::View* view = default_; 441 views::View* view = default_;
443 if (view) { 442 if (view) {
444 view->GetAccessibleState(state); 443 view->GetAccessibleState(state);
445 return true; 444 return true;
446 } 445 }
447 return false; 446 return false;
448 } 447 }
449 448
450 } // namespace ash 449 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/system/date/date_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698