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

Issue 2846623003: Make autoplay policies no longer platform dependant. (Closed)

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

Description

Make autoplay policies no longer platform dependant. This is moving the two web preferences to be available on both platforms and adds a central point to check for the current autoplay policy. Next step will be to merge the two Blink Settings into one. BUG=714676 Review-Url: https://codereview.chromium.org/2846623003 Cr-Commit-Position: refs/heads/master@{#470904} Committed: https://chromium.googlesource.com/chromium/src/+/55a0543c377a69bbb9ab8c49629f037219289cd0

Patch Set 1 #

Total comments: 6

Patch Set 2 : review comments #

Patch Set 3 : voice search fixes #

Patch Set 4 : fix webview #

Total comments: 6

Patch Set 5 : bauerb review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -49 lines) Patch
M android_webview/browser/aw_settings.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/voice_search_tab_helper.cc View 1 2 3 4 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 1 chunk +11 lines, -12 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 4 chunks +11 lines, -2 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 2 chunks +16 lines, -5 lines 0 comments Download
M media/base/media_switches.h View 1 2 3 4 3 chunks +13 lines, -1 line 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 3 chunks +24 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (21 generated)
mlamouri (slow - plz ping)
3 years, 7 months ago (2017-04-27 14:01:16 UTC) #2
nasko
LGTM, but it will be nice to prefix the enum and member name with "media", ...
3 years, 7 months ago (2017-04-27 16:52:50 UTC) #3
DaleCurtis
https://codereview.chromium.org/2846623003/diff/1/media/base/media_util.h File media/base/media_util.h (right): https://codereview.chromium.org/2846623003/diff/1/media/base/media_util.h#newcode30 media/base/media_util.h:30: // Based on a |command_line| and the current platform, ...
3 years, 7 months ago (2017-04-27 18:59:39 UTC) #4
DaleCurtis
lgtm otherwise
3 years, 7 months ago (2017-04-27 18:59:47 UTC) #5
mlamouri (slow - plz ping)
https://codereview.chromium.org/2846623003/diff/1/content/public/common/common_param_traits_macros.h File content/public/common/common_param_traits_macros.h (right): https://codereview.chromium.org/2846623003/diff/1/content/public/common/common_param_traits_macros.h#newcode255 content/public/common/common_param_traits_macros.h:255: IPC_STRUCT_TRAITS_MEMBER(autoplay_policy) On 2017/04/27 at 16:52:50, nasko wrote: > nit: ...
3 years, 7 months ago (2017-04-27 21:34:14 UTC) #6
nasko
https://codereview.chromium.org/2846623003/diff/1/content/public/common/common_param_traits_macros.h File content/public/common/common_param_traits_macros.h (right): https://codereview.chromium.org/2846623003/diff/1/content/public/common/common_param_traits_macros.h#newcode255 content/public/common/common_param_traits_macros.h:255: IPC_STRUCT_TRAITS_MEMBER(autoplay_policy) On 2017/04/27 21:34:14, mlamouri wrote: > On 2017/04/27 ...
3 years, 7 months ago (2017-04-27 21:42:56 UTC) #7
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/2846623003/20001
3 years, 7 months ago (2017-04-28 10:12:36 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/167118)
3 years, 7 months ago (2017-04-28 10:32:52 UTC) #12
mlamouri (slow - plz ping)
+bauerb@ for chrome/browser/android/ +tobiasjs@ for android_webview/
3 years, 7 months ago (2017-05-09 12:23:02 UTC) #18
Bernhard Bauer
LGTM with some nits: https://codereview.chromium.org/2846623003/diff/60001/chrome/browser/android/voice_search_tab_helper.cc File chrome/browser/android/voice_search_tab_helper.cc (right): https://codereview.chromium.org/2846623003/diff/60001/chrome/browser/android/voice_search_tab_helper.cc#newcode42 chrome/browser/android/voice_search_tab_helper.cc:42: bool gesture_requiref_by_prefs = Nit: |gesture_required_by_prefs| ...
3 years, 7 months ago (2017-05-09 12:47:17 UTC) #21
Tobias Sargeant
android_webview LGTM.
3 years, 7 months ago (2017-05-09 13:53:55 UTC) #22
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/2846623003/80001
3 years, 7 months ago (2017-05-09 17:24:28 UTC) #27
mlamouri (slow - plz ping)
https://codereview.chromium.org/2846623003/diff/60001/chrome/browser/android/voice_search_tab_helper.cc File chrome/browser/android/voice_search_tab_helper.cc (right): https://codereview.chromium.org/2846623003/diff/60001/chrome/browser/android/voice_search_tab_helper.cc#newcode42 chrome/browser/android/voice_search_tab_helper.cc:42: bool gesture_requiref_by_prefs = On 2017/05/09 at 12:47:17, Bernhard Bauer ...
3 years, 7 months ago (2017-05-09 17:24:35 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/366278) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-09 21:44:16 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/2846623003/80001
3 years, 7 months ago (2017-05-10 13:17:21 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450063)
3 years, 7 months ago (2017-05-10 15:36:12 UTC) #34
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/2846623003/80001
3 years, 7 months ago (2017-05-11 08:27:52 UTC) #36
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 10:34:33 UTC) #39
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/55a0543c377a69bbb9ab8c49629f...

Powered by Google App Engine
This is Rietveld 408576698