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

Issue 1001723002: media: Refactor PlatformVerificationFlow. (Closed)

Created:
5 years, 9 months ago by xhwang
Modified:
5 years, 9 months ago
CC:
chromium-reviews, eme-reviews_chromium.org, posciak+watch_chromium.org, stevenjb+watch_chromium.org, mcasas+watch_chromium.org, dkrahn+watch_chromium.org, feature-media-reviews_chromium.org, oshima+watch_chromium.org, wjia+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Refactor PlatformVerificationFlow. Highlight of this CL: - PlatformVerificationDialog and PlatformVerificationFlow are independant of each other now. - PlatformVerificationDialog is only triggered from ProtectedMediaIdentifierPermissionContext::RequestPermission(). - ProxyDecryptor requests permission in certain conditions. - PlatformVerificationFlow always checks permission before doing RA. - ProtectedMediaIdentifierPermissionContext is the central place checking all related settings and conditions, and handling the UI for ChromeOS. This CL doesn't change the behavior on Android yet, which will be done in the next CL. BUG=455271, 455262, 446263 TBR=bauerb@chromium.org TEST=Tested local test player and existing content providers's site/app. Committed: https://crrev.com/c84739eb25ab0d91e55ee4bfbe0bdcc91c014467 Cr-Commit-Position: refs/heads/master@{#320628}

Patch Set 1 #

Total comments: 10

Patch Set 2 : fix unittest #

Total comments: 36

Patch Set 3 : comments addressed #

Total comments: 32

Patch Set 4 : comments addressed #

Total comments: 6

Patch Set 5 : comments addressed #

Patch Set 6 : comments addressed #

Total comments: 2

Patch Set 7 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -510 lines) Patch
M chrome/browser/chromeos/attestation/platform_verification_dialog.h View 3 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/attestation/platform_verification_dialog.cc View 1 2 3 4 3 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/attestation/platform_verification_flow.h View 1 2 3 4 8 chunks +10 lines, -77 lines 0 comments Download
M chrome/browser/chromeos/attestation/platform_verification_flow.cc View 1 2 3 4 5 7 chunks +50 lines, -214 lines 0 comments Download
M chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc View 1 11 chunks +13 lines, -141 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_permission_context.h View 1 2 3 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_permission_context.cc View 1 2 3 4 9 chunks +104 lines, -46 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 4 chunks +2 lines, -3 lines 0 comments Download
M media/cdm/proxy_decryptor.h View 3 chunks +13 lines, -2 lines 0 comments Download
M media/cdm/proxy_decryptor.cc View 1 2 3 4 5 6 4 chunks +49 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (4 generated)
xhwang
PTAL
5 years, 9 months ago (2015-03-11 22:54:12 UTC) #2
xhwang
Also, I need to fix the PlatformVerificationFlowTest. But please review the implementation change first. Thanks! ...
5 years, 9 months ago (2015-03-11 23:01:17 UTC) #3
xhwang
https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_dialog.h File chrome/browser/chromeos/attestation/platform_verification_dialog.h (right): https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_dialog.h#newcode31 chrome/browser/chromeos/attestation/platform_verification_dialog.h:31: }; We should probably just replace this with PermissionStatus: ...
5 years, 9 months ago (2015-03-12 00:25:00 UTC) #4
ddorwin
Some comments. Switching to PS2. https://codereview.chromium.org/1001723002/diff/1/chrome/browser/chromeos/attestation/platform_verification_dialog.cc File chrome/browser/chromeos/attestation/platform_verification_dialog.cc (right): https://codereview.chromium.org/1001723002/diff/1/chrome/browser/chromeos/attestation/platform_verification_dialog.cc#newcode107 chrome/browser/chromeos/attestation/platform_verification_dialog.cc:107: // hasn't been made ...
5 years, 9 months ago (2015-03-12 00:28:32 UTC) #5
ddorwin
LG overall. Thanks. https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_dialog.h File chrome/browser/chromeos/attestation/platform_verification_dialog.h (right): https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_dialog.h#newcode31 chrome/browser/chromeos/attestation/platform_verification_dialog.h:31: }; On 2015/03/12 00:25:00, xhwang wrote: ...
5 years, 9 months ago (2015-03-12 03:58:12 UTC) #6
xhwang
https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_dialog.h File chrome/browser/chromeos/attestation/platform_verification_dialog.h (right): https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_dialog.h#newcode31 chrome/browser/chromeos/attestation/platform_verification_dialog.h:31: }; On 2015/03/12 03:58:11, ddorwin wrote: > On 2015/03/12 ...
5 years, 9 months ago (2015-03-12 17:35:27 UTC) #7
ddorwin
https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_flow.cc File chrome/browser/chromeos/attestation/platform_verification_flow.cc (right): https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/chromeos/attestation/platform_verification_flow.cc#newcode97 chrome/browser/chromeos/attestation/platform_verification_flow.cc:97: // TODO(xhwang): Using delegate_->GetURL() here is not right. The ...
5 years, 9 months ago (2015-03-12 21:38:54 UTC) #8
Darren Krahn
https://codereview.chromium.org/1001723002/diff/40001/chrome/browser/chromeos/attestation/platform_verification_flow.cc File chrome/browser/chromeos/attestation/platform_verification_flow.cc (left): https://codereview.chromium.org/1001723002/diff/40001/chrome/browser/chromeos/attestation/platform_verification_flow.cc#oldcode490 chrome/browser/chromeos/attestation/platform_verification_flow.cc:490: ContentSettingsPattern::CreateBuilder(false)); Is the logic from this builder still present ...
5 years, 9 months ago (2015-03-12 22:12:17 UTC) #9
xhwang
comments addressed
5 years, 9 months ago (2015-03-13 00:54:26 UTC) #10
xhwang
PTAL again. Thanks! https://codereview.chromium.org/1001723002/diff/40001/chrome/browser/chromeos/attestation/platform_verification_dialog.cc File chrome/browser/chromeos/attestation/platform_verification_dialog.cc (right): https://codereview.chromium.org/1001723002/diff/40001/chrome/browser/chromeos/attestation/platform_verification_dialog.cc#newcode106 chrome/browser/chromeos/attestation/platform_verification_dialog.cc:106: // This method is called when ...
5 years, 9 months ago (2015-03-13 00:54:42 UTC) #11
ddorwin
A couple comments in the previous PS. https://codereview.chromium.org/1001723002/diff/40001/chrome/browser/chromeos/attestation/platform_verification_dialog.cc File chrome/browser/chromeos/attestation/platform_verification_dialog.cc (right): https://codereview.chromium.org/1001723002/diff/40001/chrome/browser/chromeos/attestation/platform_verification_dialog.cc#newcode106 chrome/browser/chromeos/attestation/platform_verification_dialog.cc:106: // This ...
5 years, 9 months ago (2015-03-13 17:03:10 UTC) #12
xhwang
comments addressed
5 years, 9 months ago (2015-03-13 21:26:03 UTC) #13
xhwang
comments addressed
5 years, 9 months ago (2015-03-13 21:30:14 UTC) #14
xhwang
Sorry I missed some previous comments. Now I have responses in 3 different PS. PTAL ...
5 years, 9 months ago (2015-03-13 21:31:15 UTC) #15
ddorwin
LGTM. Thanks! https://codereview.chromium.org/1001723002/diff/100001/chrome/browser/media/protected_media_identifier_permission_context.cc File chrome/browser/media/protected_media_identifier_permission_context.cc (right): https://codereview.chromium.org/1001723002/diff/100001/chrome/browser/media/protected_media_identifier_permission_context.cc#newcode84 chrome/browser/media/protected_media_identifier_permission_context.cc:84: callback.Run(CONTENT_SETTING_ASK); What happens when we return ASK? ...
5 years, 9 months ago (2015-03-13 22:11:52 UTC) #16
xhwang
https://codereview.chromium.org/1001723002/diff/100001/chrome/browser/media/protected_media_identifier_permission_context.cc File chrome/browser/media/protected_media_identifier_permission_context.cc (right): https://codereview.chromium.org/1001723002/diff/100001/chrome/browser/media/protected_media_identifier_permission_context.cc#newcode84 chrome/browser/media/protected_media_identifier_permission_context.cc:84: callback.Run(CONTENT_SETTING_ASK); On 2015/03/13 22:11:52, ddorwin wrote: > What happens ...
5 years, 9 months ago (2015-03-13 22:18:56 UTC) #17
Darren Krahn
LGTM https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/media/protected_media_identifier_permission_context.cc File chrome/browser/media/protected_media_identifier_permission_context.cc (right): https://codereview.chromium.org/1001723002/diff/20001/chrome/browser/media/protected_media_identifier_permission_context.cc#newcode257 chrome/browser/media/protected_media_identifier_permission_context.cc:257: base::UserMetricsAction("PlatformVerificationAccepted")); On 2015/03/12 17:35:26, xhwang wrote: > On ...
5 years, 9 months ago (2015-03-13 22:47:11 UTC) #18
xhwang
comments addressed
5 years, 9 months ago (2015-03-13 23:51:53 UTC) #19
xhwang
https://codereview.chromium.org/1001723002/diff/40001/media/cdm/proxy_decryptor.cc File media/cdm/proxy_decryptor.cc (right): https://codereview.chromium.org/1001723002/diff/40001/media/cdm/proxy_decryptor.cc#newcode158 media/cdm/proxy_decryptor.cc:158: DVLOG_IF(1, !granted) << "Permission request rejected."; On 2015/03/13 22:47:11, ...
5 years, 9 months ago (2015-03-13 23:52:50 UTC) #20
xhwang
bauerb@: TBRing you on trivial changes in chrome/browser/prefs/browser_prefs.cc.
5 years, 9 months ago (2015-03-13 23:54:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1001723002/120001
5 years, 9 months ago (2015-03-13 23:55:30 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-14 01:03:06 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-14 01:03:54 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c84739eb25ab0d91e55ee4bfbe0bdcc91c014467
Cr-Commit-Position: refs/heads/master@{#320628}

Powered by Google App Engine
This is Rietveld 408576698