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

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed)

Created:
7 years ago by Kibeom Kim (inactive)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, markusheintz_, wjia+watch_chromium.org, android-webview-reviews_chromium.org, Peter Kasting, ddorwin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Dismiss EME infobar when WebMediaPlayer is destroyed. The EME infobar should be dismissed when it was requested in an iframe and it is navigated away. BUG=297891 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243458

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 25

Patch Set 7 : BrowserContext new functions stub implementations #

Patch Set 8 : Version1: save media id mapping in ProtectedMediaIdentifierPermissionContext #

Patch Set 9 : minor renaming #

Patch Set 10 : Version2: added group_id to PermissionRequestID class #

Total comments: 21

Patch Set 11 : addressed comments in patch set 10 #

Patch Set 12 : added comments in PermissionQueueController #

Total comments: 20

Patch Set 13 : addressed patch set 12's comments #

Patch Set 14 : #if defined(OS_ANDROID) #

Total comments: 12

Patch Set 15 : addressed patch set 14's comments #

Patch Set 16 : addressed patch set 14's comments #

Patch Set 17 : make FakeProfile class happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -114 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +16 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 12 chunks +53 lines, -23 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/content_settings/permission_request_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/content_settings/permission_request_id.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -4 lines 0 comments Download
chrome/browser/geolocation/chrome_geolocation_permission_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/media/chrome_midi_permission_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/chrome_midi_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_permission_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +12 lines, -5 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 5 6 7 8 9 5 chunks +29 lines, -7 lines 0 comments Download
M content/common/media/media_player_messages_android.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M content/public/test/test_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M content/renderer/media/android/proxy_media_keys.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Kibeom Kim (inactive)
qinmin@, ddorwin@ -- could you take a look at content/*/media/android/* ? Other files are trivial ...
7 years ago (2013-12-20 12:54:58 UTC) #1
ddorwin
Lots of comments on the APIs and how they fit with the APIs in the ...
7 years ago (2013-12-20 23:59:51 UTC) #2
xhwang
https://codereview.chromium.org/107413006/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/107413006/diff/100001/content/browser/media/android/browser_media_player_manager.cc#newcode776 content/browser/media/android/browser_media_player_manager.cc:776: void BrowserMediaPlayerManager::GenerateKeyIfAllowed( This now should be renamed to CreateSessionIfAllowed() ...
7 years ago (2013-12-21 00:40:48 UTC) #3
ddorwin
We should discuss the scenario this seeks to address. In the forthcoming unprefixed API, an ...
7 years ago (2013-12-21 00:44:56 UTC) #4
Kibeom Kim (inactive)
https://codereview.chromium.org/107413006/diff/100001/content/renderer/media/android/proxy_media_keys.cc File content/renderer/media/android/proxy_media_keys.cc (right): https://codereview.chromium.org/107413006/diff/100001/content/renderer/media/android/proxy_media_keys.cc#newcode99 content/renderer/media/android/proxy_media_keys.cc:99: void ProxyMediaKeys::OnSessionApproved(uint32 session_id, bool success) { On 2013/12/21 00:44:56, ...
7 years ago (2013-12-21 01:50:43 UTC) #5
xhwang
On 2013/12/21 01:50:43, Kibeom Kim wrote: > https://codereview.chromium.org/107413006/diff/100001/content/renderer/media/android/proxy_media_keys.cc > File content/renderer/media/android/proxy_media_keys.cc (right): > > https://codereview.chromium.org/107413006/diff/100001/content/renderer/media/android/proxy_media_keys.cc#newcode99 ...
7 years ago (2013-12-21 02:08:46 UTC) #6
xhwang
7 years ago (2013-12-21 02:08:56 UTC) #7
Kibeom Kim (inactive)
ptal +OWNER markusheintz@ chrome/browser/content_settings/* https://codereview.chromium.org/107413006/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/107413006/diff/100001/content/browser/media/android/browser_media_player_manager.cc#newcode776 content/browser/media/android/browser_media_player_manager.cc:776: void BrowserMediaPlayerManager::GenerateKeyIfAllowed( On 2013/12/21 00:40:48, ...
6 years, 11 months ago (2013-12-30 12:33:04 UTC) #8
xhwang
This looks much cleaner, thanks! lgtm % comments https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc#newcode182 chrome/browser/content_settings/permission_queue_controller.cc:182: PendingInfoBarRequests ...
6 years, 11 months ago (2013-12-30 19:00:59 UTC) #9
Kibeom Kim (inactive)
https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc#newcode182 chrome/browser/content_settings/permission_queue_controller.cc:182: PendingInfoBarRequests infobars_to_remove; On 2013/12/30 19:00:59, xhwang wrote: > s/infobars_to_remove/info_bar_requests_to_cancel/ ...
6 years, 11 months ago (2013-12-30 21:52:23 UTC) #10
xhwang
https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc#newcode190 chrome/browser/content_settings/permission_queue_controller.cc:190: infobars_to_remove.push_back(*i); On 2013/12/30 21:52:24, Kibeom Kim wrote: > On ...
6 years, 11 months ago (2013-12-30 21:59:39 UTC) #11
Kibeom Kim (inactive)
https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/107413006/diff/400001/chrome/browser/content_settings/permission_queue_controller.cc#newcode190 chrome/browser/content_settings/permission_queue_controller.cc:190: infobars_to_remove.push_back(*i); On 2013/12/30 21:59:39, xhwang wrote: > On 2013/12/30 ...
6 years, 11 months ago (2013-12-30 22:10:09 UTC) #12
Kibeom Kim (inactive)
remaining OWNER markusheintz@ chrome/browser/content_settings/* trivial changes: jam@ chrome/browser/android/* chrome/browser/geolocation/* chrome/browser/profiles/* chrome/test/base/* content/browser/download/download_manager_impl_unittest.cc content/public/browser/* content/public/test/* content/shell/browser/* ...
6 years, 11 months ago (2014-01-02 10:52:39 UTC) #13
Cris Neckar
On 2014/01/02 10:52:39, Kibeom Kim wrote: > remaining OWNER > > markusheintz@ > chrome/browser/content_settings/* > ...
6 years, 11 months ago (2014-01-02 19:50:46 UTC) #14
Cris Neckar
https://codereview.chromium.org/107413006/diff/1140001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/107413006/diff/1140001/android_webview/browser/aw_browser_context.cc#newcode198 android_webview/browser/aw_browser_context.cc:198: int group_id) { Please request another IPC message review ...
6 years, 11 months ago (2014-01-02 19:50:59 UTC) #15
Kibeom Kim (inactive)
https://codereview.chromium.org/107413006/diff/1140001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/107413006/diff/1140001/android_webview/browser/aw_browser_context.cc#newcode194 android_webview/browser/aw_browser_context.cc:194: callback.Run(false); NOTIMPLEMENTED(); https://codereview.chromium.org/107413006/diff/1140001/android_webview/browser/aw_browser_context.cc#newcode198 android_webview/browser/aw_browser_context.cc:198: int group_id) { NOTIMPLEMENTED();
6 years, 11 months ago (2014-01-02 22:42:27 UTC) #16
jam
https://codereview.chromium.org/107413006/diff/1140001/chrome/browser/profiles/off_the_record_profile_impl.h File chrome/browser/profiles/off_the_record_profile_impl.h (right): https://codereview.chromium.org/107413006/diff/1140001/chrome/browser/profiles/off_the_record_profile_impl.h#newcode119 chrome/browser/profiles/off_the_record_profile_impl.h:119: OVERRIDE; ditto https://codereview.chromium.org/107413006/diff/1140001/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): https://codereview.chromium.org/107413006/diff/1140001/chrome/browser/profiles/profile_impl.h#newcode96 chrome/browser/profiles/profile_impl.h:96: OVERRIDE; ...
6 years, 11 months ago (2014-01-02 22:50:55 UTC) #17
Kibeom Kim (inactive)
https://codereview.chromium.org/107413006/diff/1140001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/107413006/diff/1140001/android_webview/browser/aw_browser_context.cc#newcode194 android_webview/browser/aw_browser_context.cc:194: callback.Run(false); On 2014/01/02 22:42:28, Kibeom Kim wrote: > NOTIMPLEMENTED(); ...
6 years, 11 months ago (2014-01-02 23:26:36 UTC) #18
jam
https://codereview.chromium.org/107413006/diff/1140001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/107413006/diff/1140001/content/shell/browser/shell_browser_context.cc#newcode209 content/shell/browser/shell_browser_context.cc:209: // Always reject requests for testing. On 2014/01/02 23:26:36, ...
6 years, 11 months ago (2014-01-03 00:54:22 UTC) #19
jam
https://codereview.chromium.org/107413006/diff/1140001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/107413006/diff/1140001/content/shell/browser/shell_browser_context.cc#newcode209 content/shell/browser/shell_browser_context.cc:209: // Always reject requests for testing. On 2014/01/03 00:54:23, ...
6 years, 11 months ago (2014-01-03 00:57:34 UTC) #20
Kibeom Kim (inactive)
https://codereview.chromium.org/107413006/diff/1140001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/107413006/diff/1140001/content/shell/browser/shell_browser_context.cc#newcode209 content/shell/browser/shell_browser_context.cc:209: // Always reject requests for testing. On 2014/01/03 00:54:23, ...
6 years, 11 months ago (2014-01-03 00:59:16 UTC) #21
jam
lgtm
6 years, 11 months ago (2014-01-03 01:19:22 UTC) #22
boliu
aw lgtm
6 years, 11 months ago (2014-01-03 01:27:32 UTC) #23
markusheintz_
LGTM with nits https://codereview.chromium.org/107413006/diff/1460001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/107413006/diff/1460001/chrome/browser/content_settings/permission_queue_controller.cc#newcode204 chrome/browser/content_settings/permission_queue_controller.cc:204: ++i) nit: I know there exist ...
6 years, 11 months ago (2014-01-07 12:22:44 UTC) #24
ddorwin
A few nits. My issues have been addressed; I defer to xhwang on the */media/* ...
6 years, 11 months ago (2014-01-07 19:07:13 UTC) #25
Kibeom Kim (inactive)
https://codereview.chromium.org/107413006/diff/1460001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/107413006/diff/1460001/chrome/browser/content_settings/permission_queue_controller.cc#newcode53 chrome/browser/content_settings/permission_queue_controller.cc:53: bool has_infobar() const { return !!info_bar_; } On 2014/01/07 ...
6 years, 11 months ago (2014-01-07 19:31:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/107413006/1700001
6 years, 11 months ago (2014-01-07 19:40:16 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests, mini_installer_test, nacl_integration, sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=242648
6 years, 11 months ago (2014-01-07 21:18:29 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/107413006/2110001
6 years, 11 months ago (2014-01-07 21:45:10 UTC) #29
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 01:15:03 UTC) #30
Message was sent while issue was closed.
Change committed as 243458

Powered by Google App Engine
This is Rietveld 408576698