OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" | 14 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" |
15 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 15 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 16 #include "chrome/grit/generated_resources.h" |
16 #include "chromeos/chromeos_switches.h" | 17 #include "chromeos/chromeos_switches.h" |
17 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
18 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
19 #include "content/public/browser/web_ui.h" | 20 #include "content/public/browser/web_ui.h" |
20 #include "grit/generated_resources.h" | |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 #include "ui/base/webui/web_ui_util.h" | 22 #include "ui/base/webui/web_ui_util.h" |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // JS functions that define new and old kiosk UI API. | 28 // JS functions that define new and old kiosk UI API. |
29 const char kKioskSetAppsNewAPI[] = "login.AccountPickerScreen.setApps"; | 29 const char kKioskSetAppsNewAPI[] = "login.AccountPickerScreen.setApps"; |
30 const char kKioskSetAppsOldAPI[] = "login.AppsMenuButton.setApps"; | 30 const char kKioskSetAppsOldAPI[] = "login.AppsMenuButton.setApps"; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void KioskAppMenuHandler::OnKioskAppDataChanged(const std::string& app_id) { | 151 void KioskAppMenuHandler::OnKioskAppDataChanged(const std::string& app_id) { |
152 SendKioskApps(); | 152 SendKioskApps(); |
153 } | 153 } |
154 | 154 |
155 void KioskAppMenuHandler::UpdateState(ErrorScreenActor::ErrorReason reason) { | 155 void KioskAppMenuHandler::UpdateState(ErrorScreenActor::ErrorReason reason) { |
156 if (network_state_informer_->state() == NetworkStateInformer::ONLINE) | 156 if (network_state_informer_->state() == NetworkStateInformer::ONLINE) |
157 KioskAppManager::Get()->RetryFailedAppDataFetch(); | 157 KioskAppManager::Get()->RetryFailedAppDataFetch(); |
158 } | 158 } |
159 | 159 |
160 } // namespace chromeos | 160 } // namespace chromeos |
OLD | NEW |