| 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 "extensions/common/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/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/common/extensions/features/feature.h" | |
| 14 #include "extensions/common/error_utils.h" | 13 #include "extensions/common/error_utils.h" |
| 14 #include "extensions/common/features/feature.h" |
| 15 #include "extensions/common/features/feature_provider.h" | 15 #include "extensions/common/features/feature_provider.h" |
| 16 #include "extensions/common/install_warning.h" | 16 #include "extensions/common/install_warning.h" |
| 17 #include "extensions/common/manifest_constants.h" | 17 #include "extensions/common/manifest_constants.h" |
| 18 | 18 |
| 19 namespace extensions { | 19 namespace extensions { |
| 20 | 20 |
| 21 namespace keys = manifest_keys; | 21 namespace keys = manifest_keys; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 Feature* feature = FeatureProvider::GetByName("manifest")->GetFeature(key); | 248 Feature* feature = FeatureProvider::GetByName("manifest")->GetFeature(key); |
| 249 if (!feature) | 249 if (!feature) |
| 250 return true; | 250 return true; |
| 251 | 251 |
| 252 return feature->IsAvailableToManifest( | 252 return feature->IsAvailableToManifest( |
| 253 extension_id_, type_, Feature::ConvertLocation(location_), | 253 extension_id_, type_, Feature::ConvertLocation(location_), |
| 254 GetManifestVersion()).is_available(); | 254 GetManifestVersion()).is_available(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 } // namespace extensions | 257 } // namespace extensions |
| OLD | NEW |