| 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/common/extensions/manifest.h" | 5 #include "chrome/common/extensions/manifest.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_split.h" | |
| 11 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| 11 #include "base/strings/string_split.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/common/extensions/extension_manifest_constants.h" | 13 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 14 #include "chrome/common/extensions/features/base_feature_provider.h" | 14 #include "chrome/common/extensions/features/base_feature_provider.h" |
| 15 #include "extensions/common/error_utils.h" | 15 #include "extensions/common/error_utils.h" |
| 16 #include "extensions/common/install_warning.h" | 16 #include "extensions/common/install_warning.h" |
| 17 | 17 |
| 18 namespace errors = extension_manifest_errors; | 18 namespace errors = extension_manifest_errors; |
| 19 namespace keys = extension_manifest_keys; | 19 namespace keys = extension_manifest_keys; |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 BaseFeatureProvider::GetManifestFeatures()->GetFeature(key); | 260 BaseFeatureProvider::GetManifestFeatures()->GetFeature(key); |
| 261 if (!feature) | 261 if (!feature) |
| 262 return true; | 262 return true; |
| 263 | 263 |
| 264 return feature->IsAvailableToManifest( | 264 return feature->IsAvailableToManifest( |
| 265 extension_id_, type_, Feature::ConvertLocation(location_), | 265 extension_id_, type_, Feature::ConvertLocation(location_), |
| 266 GetManifestVersion()).is_available(); | 266 GetManifestVersion()).is_available(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace extensions | 269 } // namespace extensions |
| OLD | NEW |