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

Side by Side Diff: chrome/common/extensions/features/feature.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, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/common/extensions/features/feature.h"
6
7 #include <map>
8
9 #include "base/command_line.h"
10 #include "base/lazy_instance.h"
11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h"
13
14 namespace extensions {
15
16 // static
17 Feature::Platform Feature::GetCurrentPlatform() {
18 #if defined(OS_CHROMEOS)
19 return CHROMEOS_PLATFORM;
20 #else
21 return UNSPECIFIED_PLATFORM;
22 #endif
23 }
24
25 // static
26 Feature::Location Feature::ConvertLocation(Manifest::Location location) {
27 if (location == Manifest::COMPONENT)
28 return COMPONENT_LOCATION;
29 else
30 return UNSPECIFIED_LOCATION;
31 }
32
33 // static
34 Feature::Availability Feature::CreateAvailability(AvailabilityResult result,
35 const std::string& message) {
36 return Availability(result, message);
37 }
38
39 Feature::Feature() : no_parent_(false) {}
40
41 Feature::~Feature() {}
42
43 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/features/feature.h ('k') | chrome/common/extensions/features/manifest_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698