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

Issue 2340983004: Remove unnecessary boolean from CSPDirectiveList (Closed)

Created:
4 years, 3 months ago by amalika
Modified:
4 years, 3 months ago
Reviewers:
Mike West
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary boolean from CSPDirectiveList We had a boolean that replicated the meaning of m_headerType so all instance of the former were changed in favor of using isReportOnly class method. R=mkwst@chromium.org Committed: https://crrev.com/abe073d91e7d1f684f7086e3675b57d624457813 Cr-Commit-Position: refs/heads/master@{#419146}

Patch Set 1 : Formatting #

Total comments: 3

Patch Set 2 : Switching to using a class method isReportOnly #

Total comments: 1

Patch Set 3 : Updating the denyIfgPolicy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -17 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp View 1 8 chunks +11 lines, -13 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
amalika
4 years, 3 months ago (2016-09-16 10:00:37 UTC) #3
Mike West
LGTM, if you change the code to use the shortcut `isReportOnly()`, since it's a lot ...
4 years, 3 months ago (2016-09-16 10:08:43 UTC) #7
Mike West
https://codereview.chromium.org/2340983004/diff/60001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h File third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h (right): https://codereview.chromium.org/2340983004/diff/60001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h#newcode145 third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h:145: bool denyIfEnforcingPolicy() const { return m_headerType == ContentSecurityPolicyHeaderTypeReport; } ...
4 years, 3 months ago (2016-09-16 11:13:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2340983004/80001
4 years, 3 months ago (2016-09-16 11:18:34 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 3 months ago (2016-09-16 12:31:07 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 12:33:00 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/abe073d91e7d1f684f7086e3675b57d624457813
Cr-Commit-Position: refs/heads/master@{#419146}

Powered by Google App Engine
This is Rietveld 408576698