| 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 "content/child/runtime_features.h" | 5 #include "content/child/runtime_features.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| 11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
| 12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/common/content_switches_internal.h" | 15 #include "content/common/content_switches_internal.h" |
| 16 #include "content/public/common/content_features.h" | 16 #include "content/public/common/content_features.h" |
| 17 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
| 18 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 18 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
| 19 #include "ui/gl/gl_switches.h" | 19 #include "ui/gl/gl_switches.h" |
| 20 #include "ui/native_theme/native_theme_switches.h" | 20 #include "ui/native_theme/native_theme_switches.h" |
| 21 | 21 |
| 22 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
| 23 #include <cpu-features.h> | 23 #include <cpu-features.h> |
| 24 #include "base/android/build_info.h" | 24 #include "base/android/build_info.h" |
| 25 #include "media/base/android/media_codec_util.h" | 25 #include "media/base/android/media_codec_util.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 using blink::WebRuntimeFeatures; | 28 using blink::WebRuntimeFeatures; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 192 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 193 std::vector<std::string> disabled_features = base::SplitString( | 193 std::vector<std::string> disabled_features = base::SplitString( |
| 194 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 194 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 195 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 195 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 196 for (const std::string& feature : disabled_features) | 196 for (const std::string& feature : disabled_features) |
| 197 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 197 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace content | 201 } // namespace content |
| OLD | NEW |