| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/common/features/feature.h" | 5 #include "extensions/common/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" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "build/build_config.h" |
| 13 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 14 #include "extensions/common/manifest.h" | 15 #include "extensions/common/manifest.h" |
| 15 | 16 |
| 16 namespace extensions { | 17 namespace extensions { |
| 17 | 18 |
| 18 // static | 19 // static |
| 19 Feature::Platform Feature::GetCurrentPlatform() { | 20 Feature::Platform Feature::GetCurrentPlatform() { |
| 20 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
| 21 return CHROMEOS_PLATFORM; | 22 return CHROMEOS_PLATFORM; |
| 22 #elif defined(OS_LINUX) | 23 #elif defined(OS_LINUX) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 43 Manifest::TYPE_UNKNOWN, | 44 Manifest::TYPE_UNKNOWN, |
| 44 Manifest::INVALID_LOCATION, | 45 Manifest::INVALID_LOCATION, |
| 45 -1); // manifest_version | 46 -1); // manifest_version |
| 46 } | 47 } |
| 47 | 48 |
| 48 Feature::Feature() : no_parent_(false) {} | 49 Feature::Feature() : no_parent_(false) {} |
| 49 | 50 |
| 50 Feature::~Feature() {} | 51 Feature::~Feature() {} |
| 51 | 52 |
| 52 } // namespace extensions | 53 } // namespace extensions |
| OLD | NEW |