OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/common/manifest.h" | 5 #include "extensions/common/manifest.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
13 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
15 #include "extensions/common/error_utils.h" | 14 #include "extensions/common/error_utils.h" |
16 #include "extensions/common/features/feature.h" | 15 #include "extensions/common/features/feature.h" |
17 #include "extensions/common/features/feature_provider.h" | 16 #include "extensions/common/features/feature_provider.h" |
18 #include "extensions/common/install_warning.h" | 17 #include "extensions/common/install_warning.h" |
19 #include "extensions/common/manifest_constants.h" | 18 #include "extensions/common/manifest_constants.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 Feature* feature = FeatureProvider::GetManifestFeatures()->GetFeature(key); | 254 Feature* feature = FeatureProvider::GetManifestFeatures()->GetFeature(key); |
256 if (!feature) | 255 if (!feature) |
257 return true; | 256 return true; |
258 | 257 |
259 return feature->IsAvailableToManifest( | 258 return feature->IsAvailableToManifest( |
260 extension_id_, type_, location_, GetManifestVersion()) | 259 extension_id_, type_, location_, GetManifestVersion()) |
261 .is_available(); | 260 .is_available(); |
262 } | 261 } |
263 | 262 |
264 } // namespace extensions | 263 } // namespace extensions |
OLD | NEW |