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

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: falling back to adding a boolean flag 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 86fcd1398a4e2b92e2b75aa620bc2fcfbd4bc8bf..6e19e9b663476bd6562d1edec12fb184bee86e9e 100644
--- a/content/public/common/common_param_traits_macros.h
+++ b/content/public/common/common_param_traits_macros.h
@@ -237,6 +237,8 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
IPC_STRUCT_TRAITS_MEMBER(resue_global_for_unowned_main_frame)
IPC_STRUCT_TRAITS_MEMBER(progress_bar_completion)
IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled_by_default)
+#else
+ IPC_STRUCT_TRAITS_MEMBER(cross_origin_media_playback_requires_user_gesture)
#endif
IPC_STRUCT_TRAITS_MEMBER(autoplay_experiment_mode)
IPC_STRUCT_TRAITS_MEMBER(default_minimum_page_scale_factor)

Powered by Google App Engine
This is Rietveld 408576698