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

Unified Diff: content/public/common/common_param_traits_macros.h

Issue 2496593002: Adding an experimental flag to block autoplay with sound in cross-origin iframes (Closed)
Patch Set: Created 4 years, 1 month 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/public/common/common_param_traits_macros.h
diff --git a/content/public/common/common_param_traits_macros.h b/content/public/common/common_param_traits_macros.h
index 8f9eacad07821ba1f99668530d390c2f2f711adc..1b4495464b195ff2864a432df6a10cbd6d951467 100644
--- a/content/public/common/common_param_traits_macros.h
+++ b/content/public/common/common_param_traits_macros.h
@@ -235,10 +235,14 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
IPC_STRUCT_TRAITS_MEMBER(ignore_main_frame_overflow_hidden_quirk)
IPC_STRUCT_TRAITS_MEMBER(report_screen_size_in_physical_pixels_quirk)
IPC_STRUCT_TRAITS_MEMBER(resue_global_for_unowned_main_frame)
- IPC_STRUCT_TRAITS_MEMBER(autoplay_muted_videos_enabled)
IPC_STRUCT_TRAITS_MEMBER(progress_bar_completion)
IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled_by_default)
#endif
+ IPC_STRUCT_TRAITS_MEMBER(autoplay_muted_videos_enabled)
+#if !defined(OS_ANDROID)
+ IPC_STRUCT_TRAITS_MEMBER(
+ user_gesture_required_for_media_playback_in_cross_origin_iframes)
+#endif
IPC_STRUCT_TRAITS_MEMBER(autoplay_experiment_mode)
IPC_STRUCT_TRAITS_MEMBER(default_minimum_page_scale_factor)
IPC_STRUCT_TRAITS_MEMBER(default_maximum_page_scale_factor)

Powered by Google App Engine
This is Rietveld 408576698