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

Issue 2706293005: Fix DCHECK hit on component policy fetch with empty ID (Closed)

Created:
3 years, 10 months ago by emaxx
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DCHECK hit on component policy fetch with empty ID The DCHECK was caused by the attempt to wipe the cache data with an empty subkey, which is not allowed by policy::ResourceCache. This CL ensures that such invalid policy gets immediately discarded at the validation phase, without reaching the later steps like touching cache. BUG=694712 TEST=New unit tests; Manual test against current revision of YAPS (policy test server), which is currently erroneously sending such invalid component policy responses. Review-Url: https://codereview.chromium.org/2706293005 Cr-Commit-Position: refs/heads/master@{#452048} Committed: https://chromium.googlesource.com/chromium/src/+/ad9fcff98d11896c40edf5d0e9fca2c005b31fd2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
M components/policy/core/common/cloud/component_cloud_policy_store.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_store_unittest.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_updater_unittest.cc View 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
emaxx
Drew, PTAL.
3 years, 10 months ago (2017-02-21 21:40:07 UTC) #3
Andrew T Wilson (Slow)
lgtm
3 years, 10 months ago (2017-02-22 11:31:26 UTC) #7
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/2706293005/1
3 years, 10 months ago (2017-02-22 14:24:35 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 14:59:09 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/ad9fcff98d11896c40edf5d0e9fc...

Powered by Google App Engine
This is Rietveld 408576698