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

Issue 2837023002: Create autoplay policy flag and merge cross-origin autoplay blocking into it. (Closed)

Created:
3 years, 8 months ago by mlamouri (slow - plz ping)
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, nasko+codewatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create autoplay policy flag and merge cross-origin autoplay blocking into it. Also allows to use this flag to turn off autoplay restrictions on Android. Follow-ups will merge kDisableGestureRequirementsForMediaPlayback into this new flag. BUG=714676 Review-Url: https://codereview.chromium.org/2837023002 Cr-Commit-Position: refs/heads/master@{#467142} Committed: https://chromium.googlesource.com/chromium/src/+/1f264da2cfe8d40c211f07ce3960898e5c998773

Patch Set 1 #

Total comments: 5

Patch Set 2 : avayvod comment #

Patch Set 3 : review comments #

Patch Set 4 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -67 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 chunks +19 lines, -9 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 2 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 2 chunks +13 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M content/child/runtime_features.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M content/public/common/content_features.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M media/base/media_switches.h View 1 2 4 chunks +17 lines, -5 lines 0 comments Download
M media/base/media_switches.cc View 1 2 3 chunks +29 lines, -11 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (18 generated)
mlamouri (slow - plz ping)
Hi, PTAL: asvitkine: tools/metrics/histograms/histograms.xml dalecurtis: media/base/media_switches.cc media/base/media_switches.h nasko: content/browser/renderer_host/render_process_host_impl.cc content/browser/renderer_host/render_view_host_impl.cc content/child/runtime_features.cc content/public/common/content_features.cc content/public/common/content_features.h
3 years, 8 months ago (2017-04-24 17:17:10 UTC) #2
whywhat
drive-by https://codereview.chromium.org/2837023002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2837023002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode445 content/browser/renderer_host/render_view_host_impl.cc:445: command_line.GetSwitchValueASCII(switches::kAutoplayPolicy) == shouldn't this be != ? or ...
3 years, 8 months ago (2017-04-24 18:06:24 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/2837023002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2837023002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode445 content/browser/renderer_host/render_view_host_impl.cc:445: command_line.GetSwitchValueASCII(switches::kAutoplayPolicy) == On 2017/04/24 at 18:06:24, whywhat wrote: > ...
3 years, 8 months ago (2017-04-24 18:41:24 UTC) #5
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2837023002/diff/1/media/base/media_switches.cc File media/base/media_switches.cc (right): https://codereview.chromium.org/2837023002/diff/1/media/base/media_switches.cc#newcode143 media/base/media_switches.cc:143: // Autoplay policy to require a user gesture ...
3 years, 8 months ago (2017-04-24 18:45:07 UTC) #6
nasko
content/ rubberstamp LGTM, once whywhat's comments are addressed.
3 years, 8 months ago (2017-04-24 18:48:47 UTC) #7
mlamouri (slow - plz ping)
On 2017/04/24 at 18:48:47, nasko wrote: > content/ rubberstamp LGTM, once whywhat's comments are addressed. ...
3 years, 8 months ago (2017-04-24 18:56:49 UTC) #10
DaleCurtis
As discussed via e-mail I think this is not quite correct, "no restrictions" actually means ...
3 years, 8 months ago (2017-04-24 18:57:41 UTC) #11
mlamouri (slow - plz ping)
On 2017/04/24 at 18:57:41, dalecurtis wrote: > As discussed via e-mail I think this is ...
3 years, 8 months ago (2017-04-24 19:16:49 UTC) #14
DaleCurtis
On 2017/04/24 at 19:16:49, mlamouri wrote: > On 2017/04/24 at 18:57:41, dalecurtis wrote: > > ...
3 years, 8 months ago (2017-04-24 19:26:38 UTC) #15
mlamouri (slow - plz ping)
On 2017/04/24 at 19:26:38, dalecurtis wrote: > On 2017/04/24 at 19:16:49, mlamouri wrote: > > ...
3 years, 8 months ago (2017-04-24 19:54:53 UTC) #16
DaleCurtis
On 2017/04/24 at 19:54:53, mlamouri wrote: > On 2017/04/24 at 19:26:38, dalecurtis wrote: > > ...
3 years, 8 months ago (2017-04-24 20:30:24 UTC) #17
mlamouri (slow - plz ping)
On 2017/04/24 at 20:30:24, dalecurtis wrote: > On 2017/04/24 at 19:54:53, mlamouri wrote: > > ...
3 years, 8 months ago (2017-04-24 21:05:35 UTC) #18
DaleCurtis
On 2017/04/24 at 21:05:35, mlamouri wrote: > On 2017/04/24 at 20:30:24, dalecurtis wrote: > > ...
3 years, 8 months ago (2017-04-24 21:09:46 UTC) #19
mlamouri (slow - plz ping)
On 2017/04/24 at 21:09:46, dalecurtis wrote: > I was under the impression you're formatting these ...
3 years, 8 months ago (2017-04-25 17:17:11 UTC) #26
DaleCurtis
Thanks for the explanation! Sorry for my confusion. lgtm
3 years, 8 months ago (2017-04-25 19:07:43 UTC) #29
whywhat
lgtm
3 years, 8 months ago (2017-04-25 22:20:07 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2837023002/20002
3 years, 8 months ago (2017-04-25 22:22:57 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 22:35:07 UTC) #36
Message was sent while issue was closed.
Committed patchset #4 (id:20002) as
https://chromium.googlesource.com/chromium/src/+/1f264da2cfe8d40c211f07ce3960...

Powered by Google App Engine
This is Rietveld 408576698