| OLD | NEW |
| (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 | |
| OLD | NEW |