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

Side by Side Diff: chrome/common/extensions/features/feature.cc

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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/features/feature.h" 5 #include "chrome/common/extensions/features/feature.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 16 matching lines...) Expand all
27 // static 27 // static
28 Feature::Platform Feature::GetCurrentPlatform() { 28 Feature::Platform Feature::GetCurrentPlatform() {
29 #if defined(OS_CHROMEOS) 29 #if defined(OS_CHROMEOS)
30 return CHROMEOS_PLATFORM; 30 return CHROMEOS_PLATFORM;
31 #else 31 #else
32 return UNSPECIFIED_PLATFORM; 32 return UNSPECIFIED_PLATFORM;
33 #endif 33 #endif
34 } 34 }
35 35
36 // static 36 // static
37 Feature::Location Feature::ConvertLocation(Extension::Location location) { 37 Feature::Location Feature::ConvertLocation(Manifest::Location location) {
38 if (location == Extension::COMPONENT) 38 if (location == Manifest::COMPONENT)
39 return COMPONENT_LOCATION; 39 return COMPONENT_LOCATION;
40 else 40 else
41 return UNSPECIFIED_LOCATION; 41 return UNSPECIFIED_LOCATION;
42 } 42 }
43 43
44 // static 44 // static
45 chrome::VersionInfo::Channel Feature::GetCurrentChannel() { 45 chrome::VersionInfo::Channel Feature::GetCurrentChannel() {
46 return g_current_channel; 46 return g_current_channel;
47 } 47 }
48 48
49 // static 49 // static
50 void Feature::SetCurrentChannel(VersionInfo::Channel channel) { 50 void Feature::SetCurrentChannel(VersionInfo::Channel channel) {
51 g_current_channel = channel; 51 g_current_channel = channel;
52 } 52 }
53 53
54 // static 54 // static
55 chrome::VersionInfo::Channel Feature::GetDefaultChannel() { 55 chrome::VersionInfo::Channel Feature::GetDefaultChannel() {
56 return kDefaultChannel; 56 return kDefaultChannel;
57 } 57 }
58 58
59 Feature::~Feature() {} 59 Feature::~Feature() {}
60 60
61 } // namespace extensions 61 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698