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/browser_resources.h" | |
98 #include "grit/theme_resources.h" | |
99 #include "ui/base/l10n/l10n_util.h" | 97 #include "ui/base/l10n/l10n_util.h" |
100 | 98 |
101 using base::DictionaryValue; | 99 using base::DictionaryValue; |
102 using base::ListValue; | 100 using base::ListValue; |
103 using content::RenderViewHost; | 101 using content::RenderViewHost; |
104 using content::WebContents; | 102 using content::WebContents; |
105 | 103 |
106 namespace { | 104 namespace { |
107 const char kAppsDeveloperToolsExtensionId[] = | 105 const char kAppsDeveloperToolsExtensionId[] = |
108 "ohmmkhmmmpcnpikjeljgnaoabkaalbgc"; | 106 "ohmmkhmmmpcnpikjeljgnaoabkaalbgc"; |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 extension_service_->EnableExtension(extension_id); | 1412 extension_service_->EnableExtension(extension_id); |
1415 } else { | 1413 } else { |
1416 ExtensionErrorReporter::GetInstance()->ReportError( | 1414 ExtensionErrorReporter::GetInstance()->ReportError( |
1417 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), | 1415 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), |
1418 true); // Be noisy. | 1416 true); // Be noisy. |
1419 } | 1417 } |
1420 requirements_checker_.reset(); | 1418 requirements_checker_.reset(); |
1421 } | 1419 } |
1422 | 1420 |
1423 } // namespace extensions | 1421 } // namespace extensions |
OLD | NEW |