| 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/app_window.h" | 8 #include "apps/app_window.h" |
| 9 #include "apps/app_window_registry.h" | 9 #include "apps/app_window_registry.h" |
| 10 #include "apps/saved_files_service.h" | 10 #include "apps/saved_files_service.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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 extension_service_->EnableExtension(extension_id); | 1406 extension_service_->EnableExtension(extension_id); |
| 1409 } else { | 1407 } else { |
| 1410 ExtensionErrorReporter::GetInstance()->ReportError( | 1408 ExtensionErrorReporter::GetInstance()->ReportError( |
| 1411 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), | 1409 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), |
| 1412 true); // Be noisy. | 1410 true); // Be noisy. |
| 1413 } | 1411 } |
| 1414 requirements_checker_.reset(); | 1412 requirements_checker_.reset(); |
| 1415 } | 1413 } |
| 1416 | 1414 |
| 1417 } // namespace extensions | 1415 } // namespace extensions |
| OLD | NEW |