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

Issue 12542015: Fixed a glitch in the ComponentCloudPolicyUpdater where a protobuf field was read before being vali… (Closed)

Created:
7 years, 9 months ago by Joao da Silva
Modified:
7 years, 9 months ago
Reviewers:
pastarmovj
CC:
chromium-reviews
Visibility:
Public.

Description

Fixed a glitch in the ComponentCloudPolicyUpdater where a protobuf field was read before being validated. The updater receives protobufs that contain a secure hash of some content. When this hash differs from the cached version then the content has been updated. The bug is that the updater compares an empty secure_hash with an empty cached hash, which causes an early return but should cancel a pending job, if there is one. BUG=163318 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187290

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M chrome/browser/policy/component_cloud_policy_updater.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/policy/component_cloud_policy_updater_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Joao da Silva
Here's a simple fix, with a test that fails without the fix. Please review, thanks!
7 years, 9 months ago (2013-03-11 10:32:54 UTC) #1
pastarmovj
lgtm
7 years, 9 months ago (2013-03-11 10:36:26 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/12542015/1
7 years, 9 months ago (2013-03-11 10:43:20 UTC) #3
commit-bot: I haz the power
7 years, 9 months ago (2013-03-11 13:50:17 UTC) #4
Message was sent while issue was closed.
Change committed as 187290

Powered by Google App Engine
This is Rietveld 408576698