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/simple_feature.h" | 5 #include "chrome/common/extensions/features/simple_feature.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/sha1.h" | 12 #include "base/sha1.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "chrome/common/chrome_switches.h" | |
17 #include "chrome/common/extensions/features/feature_channel.h" | 16 #include "chrome/common/extensions/features/feature_channel.h" |
| 17 #include "extensions/common/switches.h" |
18 | 18 |
19 using chrome::VersionInfo; | 19 using chrome::VersionInfo; |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 struct Mappings { | 25 struct Mappings { |
26 Mappings() { | 26 Mappings() { |
27 extension_types["extension"] = Manifest::TYPE_EXTENSION; | 27 extension_types["extension"] = Manifest::TYPE_EXTENSION; |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 if (whitelist.find(extension_id) != whitelist.end() || | 510 if (whitelist.find(extension_id) != whitelist.end() || |
511 whitelist.find(HashExtensionId(extension_id)) != whitelist.end()) { | 511 whitelist.find(HashExtensionId(extension_id)) != whitelist.end()) { |
512 return true; | 512 return true; |
513 } | 513 } |
514 | 514 |
515 return false; | 515 return false; |
516 } | 516 } |
517 | 517 |
518 } // namespace extensions | 518 } // namespace extensions |
OLD | NEW |