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

Issue 2794283003: Remove MediaThrottler and MediaThrottleInfoBar (Closed)

Created:
3 years, 8 months ago by tguilbert
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-media_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove MediaThrottler and MediaThrottleInfoBar Since the removal of WebMediaPlayerAndroid, we use the MediaServiceThrottler instead of the MediaThrottler. This CL cleans up the unused code. It also prevents the instantiation of BrowserMediaPlayerManager. A follow up CL to merge BrowserMediaPlayerManager and RemoteMediaPlayerManager will follow in Q2 2017. This change frees up ~4.0Kib BUG=707265, 570711 TEST= built/deployed/ran chrome, made sure nothing crashed. Review-Url: https://codereview.chromium.org/2794283003 Cr-Commit-Position: refs/heads/master@{#464195} Committed: https://chromium.googlesource.com/chromium/src/+/9542e14c809a1e79e307502b4ed3f00771578b61

Patch Set 1 #

Patch Set 2 : Add comment #

Total comments: 12

Patch Set 3 : Removed resources #

Patch Set 4 : Remove NOTREACHED #

Patch Set 5 : Drop IPCs on webview #

Total comments: 4

Patch Set 6 : Deleted Java code #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -580 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/browser/android/media/media_throttle_infobar_delegate.h View 1 chunk +0 lines, -60 lines 0 comments Download
D chrome/browser/android/media/media_throttle_infobar_delegate.cc View 1 chunk +0 lines, -97 lines 0 comments Download
M chrome/browser/android/tab_web_contents_delegate_android.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/android/tab_web_contents_delegate_android.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 2 chunks +0 lines, -2 lines 1 comment Download
M components/infobars/core/infobar_delegate.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.h View 1 2 3 4 2 chunks +2 lines, -7 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 5 6 chunks +13 lines, -35 lines 0 comments Download
D content/browser/media/android/media_throttler.h View 1 chunk +0 lines, -43 lines 0 comments Download
D content/browser/media/android/media_throttler.cc View 1 chunk +0 lines, -43 lines 0 comments Download
M content/browser/media/android/media_web_contents_observer_android.cc View 1 2 3 4 1 chunk +25 lines, -19 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/MediaThrottler.java View 1 2 3 4 5 1 chunk +0 lines, -224 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (18 generated)
tguilbert
PTAL! Thanks, Thomas https://codereview.chromium.org/2794283003/diff/40001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/2794283003/diff/40001/content/browser/media/android/browser_media_player_manager.cc#newcode73 content/browser/media/android/browser_media_player_manager.cc:73: // |g_factory| should always be set ...
3 years, 8 months ago (2017-04-04 23:27:47 UTC) #3
DaleCurtis
https://codereview.chromium.org/2794283003/diff/40001/chrome/browser/android/media/media_throttle_infobar_delegate.cc File chrome/browser/android/media/media_throttle_infobar_delegate.cc (left): https://codereview.chromium.org/2794283003/diff/40001/chrome/browser/android/media/media_throttle_infobar_delegate.cc#oldcode78 chrome/browser/android/media/media_throttle_infobar_delegate.cc:78: IDS_MEDIA_THROTTLE_INFOBAR_BLOCK_BUTTON : Can delete these from https://cs.chromium.org/chromium/src/chrome/app/generated_resources.grd?l=10429 https://codereview.chromium.org/2794283003/diff/40001/content/browser/media/android/browser_media_player_manager.cc File ...
3 years, 8 months ago (2017-04-04 23:38:30 UTC) #4
whywhat
https://codereview.chromium.org/2794283003/diff/40001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/2794283003/diff/40001/content/browser/media/android/browser_media_player_manager.cc#newcode73 content/browser/media/android/browser_media_player_manager.cc:73: // |g_factory| should always be set to create a ...
3 years, 8 months ago (2017-04-04 23:41:55 UTC) #5
tguilbert
https://codereview.chromium.org/2794283003/diff/40001/chrome/browser/android/media/media_throttle_infobar_delegate.cc File chrome/browser/android/media/media_throttle_infobar_delegate.cc (left): https://codereview.chromium.org/2794283003/diff/40001/chrome/browser/android/media/media_throttle_infobar_delegate.cc#oldcode78 chrome/browser/android/media/media_throttle_infobar_delegate.cc:78: IDS_MEDIA_THROTTLE_INFOBAR_BLOCK_BUTTON : On 2017/04/04 23:38:29, DaleCurtis wrote: > Can ...
3 years, 8 months ago (2017-04-06 20:50:59 UTC) #6
tguilbert
Fixed the webview issue and made sure those webview tests don't crash anymore. PTAL, thanks! ...
3 years, 8 months ago (2017-04-10 23:47:35 UTC) #8
DaleCurtis
https://codereview.chromium.org/2794283003/diff/100001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/2794283003/diff/100001/content/browser/media/android/browser_media_player_manager.cc#newcode77 content/browser/media/android/browser_media_player_manager.cc:77: if (g_factory) Ternary if you want. https://codereview.chromium.org/2794283003/diff/100001/content/browser/media/android/media_throttler.cc File content/browser/media/android/media_throttler.cc ...
3 years, 8 months ago (2017-04-10 23:49:47 UTC) #9
tguilbert
https://codereview.chromium.org/2794283003/diff/100001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/2794283003/diff/100001/content/browser/media/android/browser_media_player_manager.cc#newcode77 content/browser/media/android/browser_media_player_manager.cc:77: if (g_factory) On 2017/04/10 23:49:47, DaleCurtis wrote: > Ternary ...
3 years, 8 months ago (2017-04-11 00:15:55 UTC) #13
tguilbert
For OWNERS review, can you PTAL at the following files? pkasting -- components/infobar/* dtrainor -- ...
3 years, 8 months ago (2017-04-11 00:27:59 UTC) #16
Peter Kasting
LGTM https://codereview.chromium.org/2794283003/diff/120001/components/infobars/core/infobar_delegate.h File components/infobars/core/infobar_delegate.h (right): https://codereview.chromium.org/2794283003/diff/120001/components/infobars/core/infobar_delegate.h#newcode83 components/infobars/core/infobar_delegate.h:83: MEDIA_THROTTLE_INFOBAR_DELEGATE = 10, Nit: Comment out with "Removed" ...
3 years, 8 months ago (2017-04-11 00:41:24 UTC) #18
DaleCurtis
Remove Java from content/public/android/BUILD.gn file?
3 years, 8 months ago (2017-04-11 00:42:09 UTC) #20
DaleCurtis
Whoops, must have been looking at an old version. See the deletion now, lgtm!
3 years, 8 months ago (2017-04-11 00:42:34 UTC) #22
Mark P
histograms.xml lgtm
3 years, 8 months ago (2017-04-11 04:31:44 UTC) #26
whywhat
lgtm
3 years, 8 months ago (2017-04-11 14:56:06 UTC) #27
tguilbert
Somehow some of the reviewers were removed from the CL. I am re-adding them. Can ...
3 years, 8 months ago (2017-04-11 21:55:02 UTC) #29
kinuko
> kinuko -- content/browser/renderer_host/* and content/public/* lgtm
3 years, 8 months ago (2017-04-12 14:53:17 UTC) #30
David Trainor- moved to gerrit
chrome/browser/android lgtm
3 years, 8 months ago (2017-04-12 16:22:09 UTC) #31
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/2794283003/120001
3 years, 8 months ago (2017-04-12 19:36:44 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 23:10:15 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/9542e14c809a1e79e307502b4ed3...

Powered by Google App Engine
This is Rietveld 408576698