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

Issue 975943003: Revert of Revert of Propagate audible state from player to the containing tab" (Closed)

Created:
5 years, 9 months ago by Tima Vaisburd
Modified:
5 years, 8 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, jbudorick, mcasas+watch_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Revert of Propagate audible state from player to the containing tab" This change contains of two parts. This is Part 1 (Chromium), Part 2 (Clank) is https://chrome-internal-review.googlesource.com/#/c/204475/ This change reverts https://codereview.chromium.org/972973002/ and restores original https://codereview.chromium.org/896673003/ with an addition of a fix: it removes DCHECK that verifies that an entry is always found and removed in a map. An entry will not be in the map unless corresponding player has been audible at least once. BUG=414810, 463445 Committed: https://crrev.com/f6f6f6906b091e26b9375b073fcbcbdf4cc5145a Cr-Commit-Position: refs/heads/master@{#319002}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -70 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 chunk +7 lines, -0 lines 0 comments Download
A content/browser/android/media_players_observer.h View 1 chunk +51 lines, -0 lines 1 comment Download
A content/browser/android/media_players_observer.cc View 1 chunk +59 lines, -0 lines 1 comment Download
M content/browser/media/android/browser_media_player_manager.h View 6 chunks +13 lines, -3 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 5 chunks +15 lines, -4 lines 0 comments Download
A content/browser/media/audio_state_provider.h View 1 chunk +57 lines, -0 lines 0 comments Download
A content/browser/media/audio_state_provider.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M content/browser/media/audio_stream_monitor.h View 6 chunks +8 lines, -21 lines 0 comments Download
M content/browser/media/audio_stream_monitor.cc View 4 chunks +22 lines, -13 lines 0 comments Download
M content/browser/media/audio_stream_monitor_unittest.cc View 1 chunk +7 lines, -1 line 0 comments Download
M content/browser/media/media_web_contents_observer.h View 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/media/media_web_contents_observer.cc View 4 chunks +22 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 4 chunks +8 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 7 chunks +11 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 8 chunks +11 lines, -11 lines 0 comments Download
M content/content_browser.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/media_player_android.h View 2 chunks +4 lines, -0 lines 0 comments Download
M media/base/android/media_player_android.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M media/base/android/media_player_bridge.cc View 4 chunks +19 lines, -4 lines 0 comments Download
M media/base/android/media_player_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/android/media_source_player_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Tima Vaisburd
Please accept my apology, the original commit has been reverted. This one contains the fix. ...
5 years, 9 months ago (2015-03-03 23:16:16 UTC) #2
qinmin
lgtm
5 years, 9 months ago (2015-03-03 23:23:50 UTC) #3
Ted C
lgtm
5 years, 9 months ago (2015-03-03 23:24:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/975943003/1
5 years, 9 months ago (2015-03-03 23:52:31 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/47053)
5 years, 9 months ago (2015-03-04 00:12:54 UTC) #8
no sievers
lgtm
5 years, 9 months ago (2015-03-04 01:03:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/975943003/1
5 years, 9 months ago (2015-03-04 01:11:37 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 9 months ago (2015-03-04 02:19:54 UTC) #12
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/f6f6f6906b091e26b9375b073fcbcbdf4cc5145a Cr-Commit-Position: refs/heads/master@{#319002}
5 years, 9 months ago (2015-03-04 02:20:42 UTC) #13
whywhat
https://codereview.chromium.org/975943003/diff/1/content/browser/android/media_players_observer.h File content/browser/android/media_players_observer.h (right): https://codereview.chromium.org/975943003/diff/1/content/browser/android/media_players_observer.h#newcode44 content/browser/android/media_players_observer.h:44: StatusMap audio_status_map_; Drive-by: it seems instead of having a ...
5 years, 8 months ago (2015-04-24 12:35:47 UTC) #15
timav
5 years, 8 months ago (2015-04-24 17:56:03 UTC) #16
Message was sent while issue was closed.
On 2015/04/24 12:35:47, whywhat wrote:
>
https://codereview.chromium.org/975943003/diff/1/content/browser/android/medi...
> File content/browser/android/media_players_observer.h (right):
> 
>
https://codereview.chromium.org/975943003/diff/1/content/browser/android/medi...
> content/browser/android/media_players_observer.h:44: StatusMap
> audio_status_map_;
> Drive-by: it seems instead of having a map<Key, bool> we could use a set<Key>
> (the Key is only present when it's audible) and consider an empty set ==
> non-audible WebContents. Has this been considered and if yes, why was it
> dropped?

Yes, it seems like a good idea. I think it just hasn't been considered.

Powered by Google App Engine
This is Rietveld 408576698