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 "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
8 #include "apps/saved_files_service.h" | 8 #include "apps/saved_files_service.h" |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #include "extensions/common/constants.h" | 87 #include "extensions/common/constants.h" |
88 #include "extensions/common/extension.h" | 88 #include "extensions/common/extension.h" |
89 #include "extensions/common/extension_icon_set.h" | 89 #include "extensions/common/extension_icon_set.h" |
90 #include "extensions/common/extension_set.h" | 90 #include "extensions/common/extension_set.h" |
91 #include "extensions/common/feature_switch.h" | 91 #include "extensions/common/feature_switch.h" |
92 #include "extensions/common/manifest.h" | 92 #include "extensions/common/manifest.h" |
93 #include "extensions/common/manifest_handlers/background_info.h" | 93 #include "extensions/common/manifest_handlers/background_info.h" |
94 #include "extensions/common/manifest_handlers/incognito_info.h" | 94 #include "extensions/common/manifest_handlers/incognito_info.h" |
95 #include "extensions/common/permissions/permissions_data.h" | 95 #include "extensions/common/permissions/permissions_data.h" |
96 #include "extensions/common/switches.h" | 96 #include "extensions/common/switches.h" |
| 97 #include "grit/components_strings.h" |
97 #include "ui/base/l10n/l10n_util.h" | 98 #include "ui/base/l10n/l10n_util.h" |
98 | 99 |
99 using base::DictionaryValue; | 100 using base::DictionaryValue; |
100 using base::ListValue; | 101 using base::ListValue; |
101 using content::RenderViewHost; | 102 using content::RenderViewHost; |
102 using content::WebContents; | 103 using content::WebContents; |
103 | 104 |
104 namespace { | 105 namespace { |
105 const char kAppsDeveloperToolsExtensionId[] = | 106 const char kAppsDeveloperToolsExtensionId[] = |
106 "ohmmkhmmmpcnpikjeljgnaoabkaalbgc"; | 107 "ohmmkhmmmpcnpikjeljgnaoabkaalbgc"; |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1412 extension_service_->EnableExtension(extension_id); | 1413 extension_service_->EnableExtension(extension_id); |
1413 } else { | 1414 } else { |
1414 ExtensionErrorReporter::GetInstance()->ReportError( | 1415 ExtensionErrorReporter::GetInstance()->ReportError( |
1415 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), | 1416 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), |
1416 true); // Be noisy. | 1417 true); // Be noisy. |
1417 } | 1418 } |
1418 requirements_checker_.reset(); | 1419 requirements_checker_.reset(); |
1419 } | 1420 } |
1420 | 1421 |
1421 } // namespace extensions | 1422 } // namespace extensions |
OLD | NEW |