|
|
Chromium Code Reviews
DescriptionAdd MediaUrlInterceptor support to MediaPlayerRenderer
This change allows webview apps to register a custom
MediaUrlInterceptor. This change simply copies the code in
BrowserMediaPlayerManager.
BUG=636588
Committed: https://crrev.com/251a73761e1da752b87eeb5ea7e22a5b1f164a85
Cr-Commit-Position: refs/heads/master@{#432060}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Addressed comments #Patch Set 3 : Removed registration, added TODO #
Messages
Total messages: 29 (14 generated)
Description was changed from ========== Add support for MediaUrlInterceptor This change allows webview apps to register a custom MediaUrlInterceptor. This blatantly copies the code in BrowserMediaPlayerManager. BUG=636588 ========== to ========== Add support for MediaUrlInterceptor This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ==========
tguilbert@chromium.org changed reviewers: + watk@chromium.org
PTAL! Thanks
lgtm % comment https://codereview.chromium.org/2463533002/diff/1/content/browser/media/andro... File content/browser/media/android/media_player_renderer.cc (right): https://codereview.chromium.org/2463533002/diff/1/content/browser/media/andro... content/browser/media/android/media_player_renderer.cc:24: static media::MediaUrlInterceptor* media_url_interceptor_ = nullptr; This should have the g_ prefix (for global). And I believe the more common convention is to use an anonymous namespace and remove the static keyword. e.g., https://cs.chromium.org/chromium/src/base/logging.cc?sq=package:chromium&l=82...
And perhaps change the description to Add support for MediaUrlInterceptor to MediaPlayerRenderer
Description was changed from ========== Add support for MediaUrlInterceptor This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ========== to ========== Add MediaUrlInterceptor to MediaPlayerRenderer This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ==========
tguilbert@chromium.org changed reviewers: + boliu@chromium.org
@watk -- Updated. Thanks! @boliu -- Please review changes in content/public/browser/* Thank you! Thomas
Description was changed from ========== Add MediaUrlInterceptor to MediaPlayerRenderer This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ========== to ========== Add MediaUrlInterceptor support to MediaPlayerRenderer This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ==========
rs lgtm
The CQ bit was checked by tguilbert@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from watk@chromium.org Link to the patchset: https://codereview.chromium.org/2463533002/#ps20001 (title: "Addressed comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by tguilbert@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
On 2016/10/31 22:20:48, commit-bot: I haz the power wrote: > 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_...) Mini update by the way: The test failures are caused by this check -- https://cs.chromium.org/chromium/src/base/feature_list.cc?sq=package:chromium... This happens because we are not calling base::FeatureList::ClearInstanceForTesting(). However, all the webview tests are in Java, and there is no way to call this method. It's not worth plumbing it to Java IMO, and I will wait until we switch MediaPlayerRenderer to be enabled by default to make this change unconditional.
On 2016/11/03 22:43:14, tguilbert wrote: > On 2016/10/31 22:20:48, commit-bot: I haz the power wrote: > > 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_...) > > Mini update by the way: > The test failures are caused by this check -- > https://cs.chromium.org/chromium/src/base/feature_list.cc?sq=package:chromium... > > This happens because we are not calling > base::FeatureList::ClearInstanceForTesting(). However, all the webview tests are > in Java, and there is no way to call this method. It's not worth plumbing it to > Java IMO, and I will wait until we switch MediaPlayerRenderer to be enabled by > default to make this change unconditional. why is it only a problem on webview? it's enabled on chrome already? I mean surely this is not the only FeatureList thing that webview tests hit..
On 2016/11/03 22:50:22, boliu wrote: > On 2016/11/03 22:43:14, tguilbert wrote: > > On 2016/10/31 22:20:48, commit-bot: I haz the power wrote: > > > 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_...) > > > > Mini update by the way: > > The test failures are caused by this check -- > > > https://cs.chromium.org/chromium/src/base/feature_list.cc?sq=package:chromium... > > > > This happens because we are not calling > > base::FeatureList::ClearInstanceForTesting(). However, all the webview tests > are > > in Java, and there is no way to call this method. It's not worth plumbing it > to > > Java IMO, and I will wait until we switch MediaPlayerRenderer to be enabled by > > default to make this change unconditional. > > why is it only a problem on webview? it's enabled on chrome already? I mean > surely this is not the only FeatureList thing that webview tests hit.. Ah, sorry, only saw this now. This is called here: https://cs.chromium.org/chromium/src/android_webview/lib/main/aw_main_delegat... This method is only called in webview, and it causes failures because there is no JNI in place to allow for the webview Java tests to call FeatureList::ClearInstanceForTesting(). I am going to submit the Media portion while only adding a comment to the browser portion.
The CQ bit was checked by tguilbert@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from watk@chromium.org, boliu@chromium.org Link to the patchset: https://codereview.chromium.org/2463533002/#ps40001 (title: "Removed registration, added TODO")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Add MediaUrlInterceptor support to MediaPlayerRenderer This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ========== to ========== Add MediaUrlInterceptor support to MediaPlayerRenderer This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Add MediaUrlInterceptor support to MediaPlayerRenderer This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 ========== to ========== Add MediaUrlInterceptor support to MediaPlayerRenderer This change allows webview apps to register a custom MediaUrlInterceptor. This change simply copies the code in BrowserMediaPlayerManager. BUG=636588 Committed: https://crrev.com/251a73761e1da752b87eeb5ea7e22a5b1f164a85 Cr-Commit-Position: refs/heads/master@{#432060} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/251a73761e1da752b87eeb5ea7e22a5b1f164a85 Cr-Commit-Position: refs/heads/master@{#432060} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
