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

Unified Diff: content/child/runtime_features.cc

Issue 874613002: Don't share Push API message payloads unless explicitly enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 0d1615eb2980ecbf49c1d40da60b9fb5bf4d4f1b..9e545f15b706af4add5b294a7b4e5b6db89a5171 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -179,6 +179,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kReducedReferrerGranularity))
WebRuntimeFeatures::enableReducedReferrerGranularity(true);
+ if (command_line.HasSwitch(switches::kEnablePushMessagePayload))
+ WebRuntimeFeatures::enablePushMessagingData(true);
+
if (command_line.HasSwitch(switches::kDisableV8IdleTasks))
WebRuntimeFeatures::enableV8IdleTasks(false);
else
« no previous file with comments | « chrome/browser/services/gcm/push_messaging_service_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698