| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 extension_data->SetBoolean("incognitoCanBeEnabled", | 261 extension_data->SetBoolean("incognitoCanBeEnabled", |
| 262 extension->can_be_incognito_enabled()); | 262 extension->can_be_incognito_enabled()); |
| 263 extension_data->SetBoolean("wantsFileAccess", extension->wants_file_access()); | 263 extension_data->SetBoolean("wantsFileAccess", extension->wants_file_access()); |
| 264 extension_data->SetBoolean("allowFileAccess", | 264 extension_data->SetBoolean("allowFileAccess", |
| 265 util::AllowFileAccess(extension->id(), extension_service_->profile())); | 265 util::AllowFileAccess(extension->id(), extension_service_->profile())); |
| 266 extension_data->SetBoolean("allow_reload", | 266 extension_data->SetBoolean("allow_reload", |
| 267 Manifest::IsUnpackedLocation(extension->location())); | 267 Manifest::IsUnpackedLocation(extension->location())); |
| 268 extension_data->SetBoolean("is_hosted_app", extension->is_hosted_app()); | 268 extension_data->SetBoolean("is_hosted_app", extension->is_hosted_app()); |
| 269 extension_data->SetBoolean("is_platform_app", extension->is_platform_app()); | 269 extension_data->SetBoolean("is_platform_app", extension->is_platform_app()); |
| 270 extension_data->SetBoolean("homepageProvided", | 270 extension_data->SetBoolean("homepageProvided", |
| 271 ManifestURL::GetHomepageURL(extension).is_valid()); | 271 ManifestURL::SpecifiedHomepageURL(extension)); |
| 272 | 272 |
| 273 // Add dependent extensions. | 273 // Add dependent extensions. |
| 274 base::ListValue* dependents_list = new base::ListValue; | 274 base::ListValue* dependents_list = new base::ListValue; |
| 275 if (extension->is_shared_module()) { | 275 if (extension->is_shared_module()) { |
| 276 scoped_ptr<ExtensionSet> dependent_extensions = | 276 scoped_ptr<ExtensionSet> dependent_extensions = |
| 277 extension_service_->shared_module_service()->GetDependentExtensions( | 277 extension_service_->shared_module_service()->GetDependentExtensions( |
| 278 extension); | 278 extension); |
| 279 for (ExtensionSet::const_iterator i = dependent_extensions->begin(); | 279 for (ExtensionSet::const_iterator i = dependent_extensions->begin(); |
| 280 i != dependent_extensions->end(); | 280 i != dependent_extensions->end(); |
| 281 i++) { | 281 i++) { |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 extension_service_->EnableExtension(extension_id); | 1413 extension_service_->EnableExtension(extension_id); |
| 1414 } else { | 1414 } else { |
| 1415 ExtensionErrorReporter::GetInstance()->ReportError( | 1415 ExtensionErrorReporter::GetInstance()->ReportError( |
| 1416 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), | 1416 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), |
| 1417 true); // Be noisy. | 1417 true); // Be noisy. |
| 1418 } | 1418 } |
| 1419 requirements_checker_.reset(); | 1419 requirements_checker_.reset(); |
| 1420 } | 1420 } |
| 1421 | 1421 |
| 1422 } // namespace extensions | 1422 } // namespace extensions |
| OLD | NEW |