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 "chrome/common/extensions/manifest_handlers/settings_overrides_handler.
h" | 5 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.
h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/common/extensions/features/feature_channel.h" | |
13 #include "components/version_info/version_info.h" | 12 #include "components/version_info/version_info.h" |
14 #include "extensions/common/error_utils.h" | 13 #include "extensions/common/error_utils.h" |
15 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 15 #include "extensions/common/features/feature_channel.h" |
16 #include "extensions/common/manifest_constants.h" | 16 #include "extensions/common/manifest_constants.h" |
17 #include "extensions/common/manifest_url_handlers.h" | 17 #include "extensions/common/manifest_url_handlers.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const char kManifest[] = "{" | 22 const char kManifest[] = "{" |
23 " \"version\" : \"1.0.0.0\"," | 23 " \"version\" : \"1.0.0.0\"," |
24 " \"name\" : \"Test\"," | 24 " \"name\" : \"Test\"," |
25 " \"chrome_settings_overrides\" : {" | 25 " \"chrome_settings_overrides\" : {" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 extensions::manifest_keys::kSettingsOverride), | 188 extensions::manifest_keys::kSettingsOverride), |
189 error); | 189 error); |
190 #else | 190 #else |
191 EXPECT_TRUE(extension.get()); | 191 EXPECT_TRUE(extension.get()); |
192 EXPECT_FALSE( | 192 EXPECT_FALSE( |
193 extension->manifest()->HasPath(manifest_keys::kSettingsOverride)); | 193 extension->manifest()->HasPath(manifest_keys::kSettingsOverride)); |
194 #endif | 194 #endif |
195 } | 195 } |
196 | 196 |
197 } // namespace | 197 } // namespace |
OLD | NEW |