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

Issue 1122353002: PepperOutputProtectionMessageFilter: set window_ only when client_id_ is valid. (Closed)

Created:
5 years, 7 months ago by xhwang
Modified:
5 years, 7 months ago
Reviewers:
bbudge, kcwu, raymes
CC:
chromium-reviews, ddorwin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PepperOutputProtectionMessageFilter: set window_ only when client_id_ is valid. TBR=kcwu@chromium.org BUG=484857 TEST=No crash now. Committed: https://crrev.com/246e2d1ea8c141751689b28538e3163d254efca8 Cr-Commit-Position: refs/heads/master@{#330494}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Adopt kcwu's advice. #

Patch Set 3 : check rfh #

Total comments: 2

Patch Set 4 : comments addressed #

Patch Set 5 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M chrome/browser/chromeos/display/output_protection_delegate.cc View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
xhwang
PTAL https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc File chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc (right): https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc#newcode162 chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc:162: GetWindow()->RemoveObserver(this); See l.171. Even with the fix there, ...
5 years, 7 months ago (2015-05-05 23:19:59 UTC) #2
kcwu
This CL basically look good but I am not very comfortable because we don't know ...
5 years, 7 months ago (2015-05-07 06:58:12 UTC) #3
xhwang
https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc File chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc (right): https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc#newcode162 chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc:162: GetWindow()->RemoveObserver(this); On 2015/05/07 06:58:11, kcwu wrote: > On 2015/05/05 ...
5 years, 7 months ago (2015-05-07 07:19:21 UTC) #4
kcwu
https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc File chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc (right): https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc#newcode182 chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc:182: GetWindow()->AddObserver(this); Does following code fix your crash? If so, ...
5 years, 7 months ago (2015-05-07 09:18:46 UTC) #5
xhwang
Your advice is working. PTAL again. https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc File chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc (right): https://codereview.chromium.org/1122353002/diff/1/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc#newcode182 chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc:182: GetWindow()->AddObserver(this); On 2015/05/07 ...
5 years, 7 months ago (2015-05-15 23:03:16 UTC) #6
kcwu
lgtm
5 years, 7 months ago (2015-05-16 12:52:17 UTC) #7
xhwang
bbudge@chromium.org: Please OWNERS review!
5 years, 7 months ago (2015-05-18 16:53:25 UTC) #9
xhwang
+raymes for the OWNERS review in case bbudge is OOO.
5 years, 7 months ago (2015-05-19 00:26:24 UTC) #11
raymes
Is it difficult to add a test for the crash? https://codereview.chromium.org/1122353002/diff/40001/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc File chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc (right): https://codereview.chromium.org/1122353002/diff/40001/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc#newcode182 ...
5 years, 7 months ago (2015-05-19 01:04:59 UTC) #12
xhwang
comments addressed
5 years, 7 months ago (2015-05-19 04:02:13 UTC) #13
xhwang
On 2015/05/19 01:04:59, raymes wrote: > Is it difficult to add a test for the ...
5 years, 7 months ago (2015-05-19 05:18:58 UTC) #14
xhwang
raymes: Sorry for the rebase noise. PTAL again. https://codereview.chromium.org/1122353002/diff/40001/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc File chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc (right): https://codereview.chromium.org/1122353002/diff/40001/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc#newcode182 chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc:182: window_->AddObserver(this); ...
5 years, 7 months ago (2015-05-19 05:19:16 UTC) #15
raymes
lgtm Please consider adding a unittest if possible :)
5 years, 7 months ago (2015-05-19 06:11:34 UTC) #16
xhwang
rebase only
5 years, 7 months ago (2015-05-19 07:40:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1122353002/80001
5 years, 7 months ago (2015-05-19 07:48:00 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-19 08:28:15 UTC) #21
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 08:29:15 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/246e2d1ea8c141751689b28538e3163d254efca8
Cr-Commit-Position: refs/heads/master@{#330494}

Powered by Google App Engine
This is Rietveld 408576698