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/extensions/chromeos/kiosk_apps_handler.h" | 5 #include "chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 20 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
21 #include "chrome/browser/chromeos/settings/cros_settings.h" | 21 #include "chrome/browser/chromeos/settings/cros_settings.h" |
22 #include "chrome/grit/chromium_strings.h" | 22 #include "chrome/grit/chromium_strings.h" |
23 #include "chrome/grit/generated_resources.h" | 23 #include "chrome/grit/generated_resources.h" |
24 #include "chromeos/chromeos_switches.h" | 24 #include "chromeos/chromeos_switches.h" |
25 #include "chromeos/settings/cros_settings_names.h" | 25 #include "chromeos/settings/cros_settings_names.h" |
26 #include "components/crx_file/id_util.h" | 26 #include "components/crx_file/id_util.h" |
| 27 #include "components/strings/grit/components_strings.h" |
27 #include "components/user_manager/user_manager.h" | 28 #include "components/user_manager/user_manager.h" |
28 #include "content/public/browser/web_ui.h" | 29 #include "content/public/browser/web_ui.h" |
29 #include "content/public/browser/web_ui_data_source.h" | 30 #include "content/public/browser/web_ui_data_source.h" |
30 #include "extensions/common/extension_urls.h" | 31 #include "extensions/common/extension_urls.h" |
31 #include "extensions/grit/extensions_browser_resources.h" | 32 #include "extensions/grit/extensions_browser_resources.h" |
32 #include "grit/components_strings.h" | |
33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
34 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
35 #include "ui/base/webui/web_ui_util.h" | 35 #include "ui/base/webui/web_ui_util.h" |
36 #include "url/gurl.h" | 36 #include "url/gurl.h" |
37 | 37 |
38 namespace chromeos { | 38 namespace chromeos { |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 // Populates app info dictionary with |app_data|. | 42 // Populates app info dictionary with |app_data|. |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 357 |
358 void KioskAppsHandler::ShowError(const std::string& app_id) { | 358 void KioskAppsHandler::ShowError(const std::string& app_id) { |
359 base::StringValue app_id_value(app_id); | 359 base::StringValue app_id_value(app_id); |
360 web_ui()->CallJavascriptFunctionUnsafe( | 360 web_ui()->CallJavascriptFunctionUnsafe( |
361 "extensions.KioskAppsOverlay.showError", app_id_value); | 361 "extensions.KioskAppsOverlay.showError", app_id_value); |
362 | 362 |
363 kiosk_app_manager_->RemoveApp(app_id, owner_settings_service_); | 363 kiosk_app_manager_->RemoveApp(app_id, owner_settings_service_); |
364 } | 364 } |
365 | 365 |
366 } // namespace chromeos | 366 } // namespace chromeos |
OLD | NEW |