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

Unified Diff: content/child/runtime_features.cc

Issue 2184973002: Add UMA to count the usage of sendBeacon with non-simple Content-Type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 837230d02d7bf9212391ac3085a78d11ddfd15c5..6c23bd3897113a6a838265c38e26a7faf20c41e5 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -252,6 +252,10 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
WebRuntimeFeatures::enableRenderingPipelineThrottling(
base::FeatureList::IsEnabled(features::kRenderingPipelineThrottling));
+ if (base::FeatureList::IsEnabled(
+ features::kSendBeaconThrowForBlobWithNonSimpleType))
+ WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(true);
+
#if defined(OS_ANDROID)
WebRuntimeFeatures::enablePaymentRequest(
base::FeatureList::IsEnabled(features::kWebPayments));
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698