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

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

Issue 2421323002: Created new account type for ARC++ kiosk. (Closed)
Patch Set: Rebase 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) 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/screen_layout_observer.h" 5 #include "ash/system/chromeos/screen_layout_observer.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 case LoginStatus::NOT_LOGGED_IN: 71 case LoginStatus::NOT_LOGGED_IN:
72 case LoginStatus::LOCKED: 72 case LoginStatus::LOCKED:
73 return false; 73 return false;
74 74
75 case LoginStatus::USER: 75 case LoginStatus::USER:
76 case LoginStatus::OWNER: 76 case LoginStatus::OWNER:
77 case LoginStatus::GUEST: 77 case LoginStatus::GUEST:
78 case LoginStatus::PUBLIC: 78 case LoginStatus::PUBLIC:
79 case LoginStatus::SUPERVISED: 79 case LoginStatus::SUPERVISED:
80 case LoginStatus::KIOSK_APP: 80 case LoginStatus::KIOSK_APP:
81 case LoginStatus::ARC_KIOSK_APP:
81 SystemTrayDelegate* delegate = WmShell::Get()->system_tray_delegate(); 82 SystemTrayDelegate* delegate = WmShell::Get()->system_tray_delegate();
82 if (delegate->ShouldShowSettings()) { 83 if (delegate->ShouldShowSettings()) {
83 WmShell::Get()->system_tray_controller()->ShowDisplaySettings(); 84 WmShell::Get()->system_tray_controller()->ShowDisplaySettings();
84 return true; 85 return true;
85 } 86 }
87 break;
86 } 88 }
87 89
88 return false; 90 return false;
89 } 91 }
90 92
91 // Callback to handle a user selecting the notification view. 93 // Callback to handle a user selecting the notification view.
92 void OpenSettingsFromNotification() { 94 void OpenSettingsFromNotification() {
93 WmShell::Get()->RecordUserMetricsAction( 95 WmShell::Get()->RecordUserMetricsAction(
94 UMA_STATUS_AREA_DISPLAY_NOTIFICATION_SELECTED); 96 UMA_STATUS_AREA_DISPLAY_NOTIFICATION_SELECTED);
95 if (OpenSettings()) { 97 if (OpenSettings()) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 if (!show_notifications_for_testing) 305 if (!show_notifications_for_testing)
304 return; 306 return;
305 307
306 base::string16 message; 308 base::string16 message;
307 base::string16 additional_message; 309 base::string16 additional_message;
308 if (GetDisplayMessageForNotification(old_info, &message, &additional_message)) 310 if (GetDisplayMessageForNotification(old_info, &message, &additional_message))
309 CreateOrUpdateNotification(message, additional_message); 311 CreateOrUpdateNotification(message, additional_message);
310 } 312 }
311 313
312 } // namespace ash 314 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698