Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: extensions/common/manifest.cc

Issue 23257005: Move Feature and Manifest to top-level extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/common/manifest.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/common/manifest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698