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

Issue 23828007: Check whether the Pepper CDM is available before adding the key system. (Closed)

Created:
7 years, 3 months ago by ddorwin
Modified:
7 years, 3 months ago
CC:
chromium-reviews, stuartmorgan+watch_chromium.org, feature-media-reviews_chromium.org, xhwang, shadi, anandc
Visibility:
Public.

Description

Check whether the Pepper CDM is available before adding the key system. This adds a synchronous IPC from chrome_key_systems.cc to the browser process to check with the PluginService. BUG=224793 TEST=existing IsTypeSupported browser tests and new negative tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223719

Patch Set 1 #

Total comments: 9

Patch Set 2 : review feedback #

Patch Set 3 : rebase only #

Patch Set 4 : moved functions - no logic change #

Patch Set 5 : Changed to check for Pepper plugins only and not use PluginList; added tests #

Total comments: 10

Patch Set 6 : review feedback #

Patch Set 7 : rebase only #

Total comments: 4

Patch Set 8 : updated comments #

Total comments: 4

Patch Set 9 : Use GetInternalPlugins(); breaks External Clear Key #

Total comments: 2

Patch Set 10 : Fix bug that broke the test CDM. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -51 lines) Patch
M chrome/browser/media/encrypted_media_istypesupported_browsertest.cc View 1 2 3 4 5 chunks +84 lines, -4 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 1 2 3 4 5 6 7 8 5 chunks +66 lines, -46 lines 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
ddorwin
The tests depend on John's CL. PTAL at the code for now.
7 years, 3 months ago (2013-09-11 21:33:42 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/23828007/diff/1/chrome/common/render_messages.h File chrome/common/render_messages.h (right): https://codereview.chromium.org/23828007/diff/1/chrome/common/render_messages.h#newcode509 chrome/common/render_messages.h:509: IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_IsSupportingPluginAvailable, hmm... this name is a bit ambiguous but ...
7 years, 3 months ago (2013-09-11 22:34:41 UTC) #2
xhwang
looking good other than scherkus's comments and a nit. https://codereview.chromium.org/23828007/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/23828007/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc#newcode68 chrome/browser/plugins/plugin_info_message_filter.cc:68: ...
7 years, 3 months ago (2013-09-11 22:49:28 UTC) #3
ddorwin
I found that PluginList, which was the underlying source of data, only has (the internal) ...
7 years, 3 months ago (2013-09-16 17:17:58 UTC) #4
scherkus (not reviewing)
lgtm w/ nits https://codereview.chromium.org/23828007/diff/1/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/23828007/diff/1/chrome/renderer/media/chrome_key_systems.cc#newcode86 chrome/renderer/media/chrome_key_systems.cc:86: bool is_available = false; On 2013/09/16 ...
7 years, 3 months ago (2013-09-16 17:42:05 UTC) #5
ddorwin
jam, please review content/browser/. (Note: This is the desktop version of https://codereview.chromium.org/23513055/.) bauerb, please review ...
7 years, 3 months ago (2013-09-16 18:28:58 UTC) #6
Bernhard Bauer
LGTM with nits addressed: https://codereview.chromium.org/23828007/diff/40001/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc File chrome/browser/media/encrypted_media_istypesupported_browsertest.cc (right): https://codereview.chromium.org/23828007/diff/40001/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc#newcode159 chrome/browser/media/encrypted_media_istypesupported_browsertest.cc:159: bool expect_adapter_exists = true) { ...
7 years, 3 months ago (2013-09-16 19:16:03 UTC) #7
jschuh
ipc security lgtm.
7 years, 3 months ago (2013-09-16 19:32:56 UTC) #8
ddorwin
jam, PTAL at content/. https://codereview.chromium.org/23828007/diff/40001/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc File chrome/browser/media/encrypted_media_istypesupported_browsertest.cc (right): https://codereview.chromium.org/23828007/diff/40001/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc#newcode159 chrome/browser/media/encrypted_media_istypesupported_browsertest.cc:159: bool expect_adapter_exists = true) { ...
7 years, 3 months ago (2013-09-16 21:44:51 UTC) #9
jam
https://codereview.chromium.org/23828007/diff/49001/content/public/browser/plugin_service.h File content/public/browser/plugin_service.h (right): https://codereview.chromium.org/23828007/diff/49001/content/public/browser/plugin_service.h#newcode108 content/public/browser/plugin_service.h:108: virtual bool IsPepperPluginRegisteredForMimeType( seems that you can avoid changing ...
7 years, 3 months ago (2013-09-17 00:27:57 UTC) #10
ddorwin
jam, buaerb, scherkus: PTAL at the discussion in PS8. This PS is simpler since it ...
7 years, 3 months ago (2013-09-17 01:41:18 UTC) #11
ddorwin
Added a third option. On 2013/09/17 01:41:18, ddorwin wrote: > jam, buaerb, scherkus: PTAL at ...
7 years, 3 months ago (2013-09-17 01:46:09 UTC) #12
ddorwin
jam, bauerb, scherkus: Please review the changes in PS9 (see below for details). xhwang, shadi, ...
7 years, 3 months ago (2013-09-17 04:04:04 UTC) #13
ddorwin
xhwang, shadi, anandc: FYI on changes to testing. https://codereview.chromium.org/23828007/diff/55001/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc File chrome/browser/media/encrypted_media_istypesupported_browsertest.cc (right): https://codereview.chromium.org/23828007/diff/55001/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc#newcode856 chrome/browser/media/encrypted_media_istypesupported_browsertest.cc:856: // ...
7 years, 3 months ago (2013-09-17 04:06:00 UTC) #14
jam
On 2013/09/17 04:04:04, ddorwin wrote: > jam, bauerb, scherkus: Please review the changes in PS9 ...
7 years, 3 months ago (2013-09-17 14:49:22 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/23828007/diff/49001/content/public/browser/plugin_service.h File content/public/browser/plugin_service.h (right): https://codereview.chromium.org/23828007/diff/49001/content/public/browser/plugin_service.h#newcode108 content/public/browser/plugin_service.h:108: virtual bool IsPepperPluginRegisteredForMimeType( On 2013/09/17 01:41:18, ddorwin wrote: > ...
7 years, 3 months ago (2013-09-17 14:52:56 UTC) #16
ddorwin
https://codereview.chromium.org/23828007/diff/49001/content/public/browser/plugin_service.h File content/public/browser/plugin_service.h (right): https://codereview.chromium.org/23828007/diff/49001/content/public/browser/plugin_service.h#newcode108 content/public/browser/plugin_service.h:108: virtual bool IsPepperPluginRegisteredForMimeType( On 2013/09/17 14:52:57, Bernhard Bauer wrote: ...
7 years, 3 months ago (2013-09-17 17:19:52 UTC) #17
Bernhard Bauer
On Tue, Sep 17, 2013 at 10:19 AM, <ddorwin@chromium.org> wrote: > > https://codereview.chromium.**org/23828007/diff/49001/** > content/public/browser/plugin_**service.h<https://codereview.chromium.org/23828007/diff/49001/content/public/browser/plugin_service.h> ...
7 years, 3 months ago (2013-09-17 17:35:40 UTC) #18
scherkus (not reviewing)
lgtm
7 years, 3 months ago (2013-09-17 18:06:53 UTC) #19
ddorwin
On 2013/09/17 17:35:40, Bernhard Bauer wrote: > On Tue, Sep 17, 2013 at 10:19 AM, ...
7 years, 3 months ago (2013-09-17 18:32:14 UTC) #20
Bernhard Bauer
On Tue, Sep 17, 2013 at 8:32 PM, <ddorwin@chromium.org> wrote: > Based on experiments, GetPluginInfoArray() ...
7 years, 3 months ago (2013-09-17 18:51:14 UTC) #21
ddorwin
Good news: We do register command line Pepper plugins as internal plugins, so PS9 can ...
7 years, 3 months ago (2013-09-17 19:53:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ddorwin@chromium.org/23828007/67001
7 years, 3 months ago (2013-09-17 19:55:26 UTC) #23
Bernhard Bauer
On Tue, Sep 17, 2013 at 9:53 PM, <ddorwin@chromium.org> wrote: > Good news: We do ...
7 years, 3 months ago (2013-09-17 20:06:45 UTC) #24
commit-bot: I haz the power
7 years, 3 months ago (2013-09-17 22:32:53 UTC) #25
Message was sent while issue was closed.
Change committed as 223719

Powered by Google App Engine
This is Rietveld 408576698