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

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

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: s/WebScheduler.h/web_scheduler.h/ Created 3 years, 8 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
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 if (command_line.HasSwitch(switches::kDisableMediaSessionAPI)) 332 if (command_line.HasSwitch(switches::kDisableMediaSessionAPI))
333 WebRuntimeFeatures::EnableMediaSession(false); 333 WebRuntimeFeatures::EnableMediaSession(false);
334 334
335 WebRuntimeFeatures::EnablePaymentRequest( 335 WebRuntimeFeatures::EnablePaymentRequest(
336 base::FeatureList::IsEnabled(features::kWebPayments)); 336 base::FeatureList::IsEnabled(features::kWebPayments));
337 #endif 337 #endif
338 338
339 WebRuntimeFeatures::EnableServiceWorkerNavigationPreload( 339 WebRuntimeFeatures::EnableServiceWorkerNavigationPreload(
340 base::FeatureList::IsEnabled(features::kServiceWorkerNavigationPreload)); 340 base::FeatureList::IsEnabled(features::kServiceWorkerNavigationPreload));
341 341
342 WebRuntimeFeatures::EnableOffMainThreadFetch(
343 base::FeatureList::IsEnabled(features::kOffMainThreadFetch));
344
342 if (base::FeatureList::IsEnabled(features::kGamepadExtensions)) 345 if (base::FeatureList::IsEnabled(features::kGamepadExtensions))
343 WebRuntimeFeatures::EnableGamepadExtensions(true); 346 WebRuntimeFeatures::EnableGamepadExtensions(true);
344 347
345 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition)) 348 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition))
346 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition", 349 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition",
347 true); 350 true);
348 351
349 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers)) 352 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers))
350 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers", 353 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers",
351 false); 354 false);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 402 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
400 std::vector<std::string> disabled_features = base::SplitString( 403 std::vector<std::string> disabled_features = base::SplitString(
401 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 404 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
402 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 405 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
403 for (const std::string& feature : disabled_features) 406 for (const std::string& feature : disabled_features)
404 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 407 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
405 } 408 }
406 } 409 }
407 410
408 } // namespace content 411 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698