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 <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/browser/chromeos/settings/cros_settings.h" | 18 #include "chrome/browser/chromeos/settings/cros_settings.h" |
19 #include "chrome/common/extensions/extension_constants.h" | |
20 #include "chrome/grit/chromium_strings.h" | 19 #include "chrome/grit/chromium_strings.h" |
21 #include "chrome/grit/generated_resources.h" | 20 #include "chrome/grit/generated_resources.h" |
22 #include "chromeos/chromeos_switches.h" | 21 #include "chromeos/chromeos_switches.h" |
23 #include "chromeos/settings/cros_settings_names.h" | 22 #include "chromeos/settings/cros_settings_names.h" |
24 #include "components/crx_file/id_util.h" | 23 #include "components/crx_file/id_util.h" |
25 #include "components/user_manager/user_manager.h" | 24 #include "components/user_manager/user_manager.h" |
26 #include "content/public/browser/web_ui.h" | 25 #include "content/public/browser/web_ui.h" |
27 #include "content/public/browser/web_ui_data_source.h" | 26 #include "content/public/browser/web_ui_data_source.h" |
| 27 #include "extensions/common/extension_urls.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "ui/base/webui/web_ui_util.h" | 29 #include "ui/base/webui/web_ui_util.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 namespace chromeos { | 32 namespace chromeos { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Populates app info dictionary with |app_data|. | 36 // Populates app info dictionary with |app_data|. |
37 void PopulateAppDict(const KioskAppManager::App& app_data, | 37 void PopulateAppDict(const KioskAppManager::App& app_data, |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 347 |
348 void KioskAppsHandler::ShowError(const std::string& app_id) { | 348 void KioskAppsHandler::ShowError(const std::string& app_id) { |
349 base::StringValue app_id_value(app_id); | 349 base::StringValue app_id_value(app_id); |
350 web_ui()->CallJavascriptFunction("extensions.KioskAppsOverlay.showError", | 350 web_ui()->CallJavascriptFunction("extensions.KioskAppsOverlay.showError", |
351 app_id_value); | 351 app_id_value); |
352 | 352 |
353 kiosk_app_manager_->RemoveApp(app_id); | 353 kiosk_app_manager_->RemoveApp(app_id); |
354 } | 354 } |
355 | 355 |
356 } // namespace chromeos | 356 } // namespace chromeos |
OLD | NEW |