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

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

Issue 2541363002: Reload Reloaded: remove experimental flag that has been enabled by default (Closed)
Patch Set: Created 4 years 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"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 if (command_line.HasSwitch(switches::kEnableWebFontsInterventionTrigger)) 240 if (command_line.HasSwitch(switches::kEnableWebFontsInterventionTrigger))
241 WebRuntimeFeatures::enableWebFontsInterventionTrigger(true); 241 WebRuntimeFeatures::enableWebFontsInterventionTrigger(true);
242 242
243 WebRuntimeFeatures::enableScrollAnchoring( 243 WebRuntimeFeatures::enableScrollAnchoring(
244 base::FeatureList::IsEnabled(features::kScrollAnchoring) || 244 base::FeatureList::IsEnabled(features::kScrollAnchoring) ||
245 enableExperimentalWebPlatformFeatures); 245 enableExperimentalWebPlatformFeatures);
246 246
247 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2)) 247 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2))
248 WebRuntimeFeatures::enableSlimmingPaintV2(true); 248 WebRuntimeFeatures::enableSlimmingPaintV2(true);
249 249
250 if (base::FeatureList::IsEnabled(
251 features::kNonValidatingReloadOnNormalReload)) {
252 WebRuntimeFeatures::enableReloadwithoutSubResourceCacheRevalidation(true);
253 }
254
255 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) 250 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator))
256 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); 251 WebRuntimeFeatures::enableDocumentWriteEvaluator(true);
257 252
258 if (base::FeatureList::IsEnabled(features::kLazyParseCSS)) 253 if (base::FeatureList::IsEnabled(features::kLazyParseCSS))
259 WebRuntimeFeatures::enableLazyParseCSS(true); 254 WebRuntimeFeatures::enableLazyParseCSS(true);
260 255
261 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 256 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
262 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 257 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
263 258
264 WebRuntimeFeatures::enablePointerEvent( 259 WebRuntimeFeatures::enablePointerEvent(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 337 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
343 std::vector<std::string> disabled_features = base::SplitString( 338 std::vector<std::string> disabled_features = base::SplitString(
344 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 339 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
345 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 340 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
346 for (const std::string& feature : disabled_features) 341 for (const std::string& feature : disabled_features)
347 WebRuntimeFeatures::enableFeatureFromString(feature, false); 342 WebRuntimeFeatures::enableFeatureFromString(feature, false);
348 } 343 }
349 } 344 }
350 345
351 } // namespace content 346 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/reload_cache_control_browsertest.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698