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