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

Issue 130363002: Pass Chrome user agent string to Android media player (Closed)

Created:
6 years, 11 months ago by Jinsuk Kim
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org, klobag.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Pass Chrome user agent string to Android media player Android Media player, by default, uses its own user agent string in the format of "stagefright/1.2 (Linux; Android x.x)" when sending out requests. This CL changes it to that of Chrome for Android when the media player instance is hosted by Chrome for Android (or ChromiumWebView) to make the UA used across the browser and its media source consistent. R=qinmin@chromium.org BUG=332344 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244130

Patch Set 1 #

Patch Set 2 : reverted the change in DEPS #

Total comments: 2

Patch Set 3 : pass the user agent from mp-bridge to media-resource-getter #

Total comments: 7

Patch Set 4 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -17 lines) Patch
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M content/browser/media/android/media_resource_getter_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/android/media_resource_getter_impl.cc View 1 2 3 chunks +17 lines, -9 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/MediaResourceGetter.java View 2 chunks +5 lines, -1 line 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaPlayerBridge.java View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/android/media_player_bridge.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M media/base/android/media_player_bridge.cc View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M media/base/android/media_resource_getter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Jinsuk Kim
6 years, 11 months ago (2014-01-09 01:29:56 UTC) #1
Jinsuk Kim
Hi xhwang, I added you to the reviewer to review the change made in media/DEPS. ...
6 years, 11 months ago (2014-01-09 01:38:31 UTC) #2
ycheo (away)
On 2014/01/09 01:38:31, jindor wrote: > Hi xhwang, I added you to the reviewer to ...
6 years, 11 months ago (2014-01-09 01:49:05 UTC) #3
Jinsuk Kim
On 2014/01/09 01:49:05, Yuncheol Heo wrote: > On 2014/01/09 01:38:31, jindor wrote: > > Hi ...
6 years, 11 months ago (2014-01-09 03:58:06 UTC) #4
qinmin
https://codereview.chromium.org/130363002/diff/50001/content/browser/media/android/media_resource_getter_impl.cc File content/browser/media/android/media_resource_getter_impl.cc (right): https://codereview.chromium.org/130363002/diff/50001/content/browser/media/android/media_resource_getter_impl.cc#newcode48 content/browser/media/android/media_resource_getter_impl.cc:48: env, GetUserAgent(GURL(url))); you can pass useragent to GetMediaMetadata() from ...
6 years, 11 months ago (2014-01-09 04:48:43 UTC) #5
Jinsuk Kim
Thanks for the review. Please take another look. Hi Marcus, I added you as a ...
6 years, 11 months ago (2014-01-09 05:22:54 UTC) #6
ycheo (away)
On 2014/01/09 05:22:54, jindor wrote: > Thanks for the review. Please take another look. > ...
6 years, 11 months ago (2014-01-09 05:45:00 UTC) #7
qinmin
lgtm
6 years, 11 months ago (2014-01-09 06:01:34 UTC) #8
bulach
lgtm % nit, thanks! avayvod may want to take a look at the media player ...
6 years, 11 months ago (2014-01-09 14:23:01 UTC) #9
whywhat
Thanks for a heads up, Marcus. This will certainly break our downstream class that inherits ...
6 years, 11 months ago (2014-01-09 15:00:18 UTC) #10
xhwang
drive-by comments https://codereview.chromium.org/130363002/diff/110001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/130363002/diff/110001/content/browser/media/android/browser_media_player_manager.cc#newcode80 content/browser/media/android/browser_media_player_manager.cc:80: const std::string& user_agent = GetUserAgent(url); Based on ...
6 years, 11 months ago (2014-01-09 17:51:14 UTC) #11
scherkus (not reviewing)
any possibility for a test?
6 years, 11 months ago (2014-01-10 00:08:54 UTC) #12
Jinsuk Kim
Thanks for the review. https://codereview.chromium.org/130363002/diff/110001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/130363002/diff/110001/content/browser/media/android/browser_media_player_manager.cc#newcode80 content/browser/media/android/browser_media_player_manager.cc:80: const std::string& user_agent = GetUserAgent(url); ...
6 years, 11 months ago (2014-01-10 01:19:12 UTC) #13
Jinsuk Kim
On 2014/01/10 00:08:54, scherkus wrote: > any possibility for a test? I don't have a ...
6 years, 11 months ago (2014-01-10 01:23:25 UTC) #14
Jinsuk Kim
On 2014/01/09 15:00:18, whywhat wrote: > Thanks for a heads up, Marcus. > > This ...
6 years, 11 months ago (2014-01-10 01:26:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinsukkim@chromium.org/130363002/310001
6 years, 11 months ago (2014-01-10 01:27:38 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=244568
6 years, 11 months ago (2014-01-10 05:21:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinsukkim@chromium.org/130363002/310001
6 years, 11 months ago (2014-01-10 06:30:18 UTC) #18
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 08:44:43 UTC) #19
Message was sent while issue was closed.
Change committed as 244130

Powered by Google App Engine
This is Rietveld 408576698