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/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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // static | 48 // static |
49 void Feature::SetCurrentChannel(VersionInfo::Channel channel) { | 49 void Feature::SetCurrentChannel(VersionInfo::Channel channel) { |
50 g_current_channel = channel; | 50 g_current_channel = channel; |
51 } | 51 } |
52 | 52 |
53 // static | 53 // static |
54 chrome::VersionInfo::Channel Feature::GetDefaultChannel() { | 54 chrome::VersionInfo::Channel Feature::GetDefaultChannel() { |
55 return kDefaultChannel; | 55 return kDefaultChannel; |
56 } | 56 } |
57 | 57 |
| 58 // static |
| 59 Feature::Availability Feature::CreateAvailability(AvailabilityResult result, |
| 60 const std::string& message) { |
| 61 return Availability(result, message); |
| 62 } |
| 63 |
58 Feature::~Feature() {} | 64 Feature::~Feature() {} |
59 | 65 |
60 } // namespace extensions | 66 } // namespace extensions |
OLD | NEW |