OLD | NEW |
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 "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 5 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "base/version.h" | 17 #include "base/version.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/devtools/devtools_window.h" | 19 #include "chrome/browser/devtools/devtools_window.h" |
20 #include "chrome/browser/extensions/crx_installer.h" | 20 #include "chrome/browser/extensions/crx_installer.h" |
21 #include "chrome/browser/extensions/extension_action_manager.h" | 21 #include "chrome/browser/extensions/extension_action_manager.h" |
22 #include "chrome/browser/extensions/extension_disabled_ui.h" | 22 #include "chrome/browser/extensions/extension_disabled_ui.h" |
23 #include "chrome/browser/extensions/extension_error_reporter.h" | 23 #include "chrome/browser/extensions/extension_error_reporter.h" |
24 #include "chrome/browser/extensions/extension_host.h" | 24 #include "chrome/browser/extensions/extension_host.h" |
25 #include "chrome/browser/extensions/extension_service.h" | 25 #include "chrome/browser/extensions/extension_service.h" |
26 #include "chrome/browser/extensions/extension_system.h" | 26 #include "chrome/browser/extensions/extension_system.h" |
27 #include "chrome/browser/extensions/extension_warning_set.h" | 27 #include "chrome/browser/extensions/extension_warning_set.h" |
28 #include "chrome/browser/extensions/lazy_background_task_queue.h" | 28 #include "chrome/browser/extensions/lazy_background_task_queue.h" |
| 29 #include "chrome/browser/extensions/management_policy.h" |
29 #include "chrome/browser/extensions/shell_window_registry.h" | 30 #include "chrome/browser/extensions/shell_window_registry.h" |
30 #include "chrome/browser/extensions/unpacked_installer.h" | 31 #include "chrome/browser/extensions/unpacked_installer.h" |
31 #include "chrome/browser/extensions/updater/extension_updater.h" | 32 #include "chrome/browser/extensions/updater/extension_updater.h" |
32 #include "chrome/browser/google/google_util.h" | 33 #include "chrome/browser/google/google_util.h" |
33 #include "chrome/browser/managed_mode/managed_mode.h" | 34 #include "chrome/browser/managed_mode/managed_mode.h" |
34 #include "chrome/browser/prefs/pref_service.h" | 35 #include "chrome/browser/prefs/pref_service.h" |
35 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
36 #include "chrome/browser/tab_contents/background_contents.h" | 37 #include "chrome/browser/tab_contents/background_contents.h" |
37 #include "chrome/browser/ui/browser_finder.h" | 38 #include "chrome/browser/ui/browser_finder.h" |
38 #include "chrome/browser/ui/chrome_select_file_policy.h" | 39 #include "chrome/browser/ui/chrome_select_file_policy.h" |
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 std::vector<std::string> requirement_errors) { | 1005 std::vector<std::string> requirement_errors) { |
1005 if (requirement_errors.empty()) { | 1006 if (requirement_errors.empty()) { |
1006 extension_service_->EnableExtension(extension_id); | 1007 extension_service_->EnableExtension(extension_id); |
1007 } else { | 1008 } else { |
1008 ExtensionErrorReporter::GetInstance()->ReportError( | 1009 ExtensionErrorReporter::GetInstance()->ReportError( |
1009 UTF8ToUTF16(JoinString(requirement_errors, ' ')), | 1010 UTF8ToUTF16(JoinString(requirement_errors, ' ')), |
1010 true /* be noisy */); | 1011 true /* be noisy */); |
1011 } | 1012 } |
1012 requirements_checker_.reset(); | 1013 requirements_checker_.reset(); |
1013 } | 1014 } |
OLD | NEW |