Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Side by Side Diff: content/child/runtime_features.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "build/build_config.h"
13 #include "content/common/content_switches_internal.h" 14 #include "content/common/content_switches_internal.h"
14 #include "content/public/common/content_features.h" 15 #include "content/public/common/content_features.h"
15 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
16 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 17 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
17 #include "ui/gl/gl_switches.h" 18 #include "ui/gl/gl_switches.h"
18 #include "ui/native_theme/native_theme_switches.h" 19 #include "ui/native_theme/native_theme_switches.h"
19 20
20 #if defined(OS_ANDROID) 21 #if defined(OS_ANDROID)
21 #include <cpu-features.h> 22 #include <cpu-features.h>
22 #include "base/android/build_info.h" 23 #include "base/android/build_info.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 219 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
219 std::vector<std::string> disabled_features = base::SplitString( 220 std::vector<std::string> disabled_features = base::SplitString(
220 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 221 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
221 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 222 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
222 for (const std::string& feature : disabled_features) 223 for (const std::string& feature : disabled_features)
223 WebRuntimeFeatures::enableFeatureFromString(feature, false); 224 WebRuntimeFeatures::enableFeatureFromString(feature, false);
224 } 225 }
225 } 226 }
226 227
227 } // namespace content 228 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_scheduling_filter.cc ('k') | content/child/scoped_child_process_reference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698