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

Issue 329303007: Fix several problems with the content verification code (Closed)

Created:
6 years, 6 months ago by asargent_no_longer_on_chrome
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fix several problems with the content verification code -While we're doing the initial scan of files to build up computed_hashes.json, if we notice a mismatch, report that right away. This also fixes problems where if you modify/delete computed_hashes.json, enforcement would never work. -Avoid an infinite loop in ContentVerifyJob by making sure we stop checking newly read bytes after we've already reported a failure (we were stuck failing to advance to the next block after reporting a failure) BUG=375992, 375953 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278071

Patch Set 1 : ready #

Total comments: 5

Patch Set 2 : responded to review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -95 lines) Patch
M extensions/browser/content_hash_fetcher.h View 3 chunks +22 lines, -3 lines 0 comments Download
M extensions/browser/content_hash_fetcher.cc View 1 18 chunks +100 lines, -27 lines 0 comments Download
M extensions/browser/content_hash_reader.h View 2 chunks +9 lines, -0 lines 0 comments Download
M extensions/browser/content_hash_reader.cc View 3 chunks +18 lines, -13 lines 0 comments Download
M extensions/browser/content_verifier.h View 2 chunks +15 lines, -0 lines 0 comments Download
M extensions/browser/content_verifier.cc View 3 chunks +87 lines, -31 lines 0 comments Download
M extensions/browser/content_verifier_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/content_verify_job.h View 1 3 chunks +13 lines, -5 lines 0 comments Download
M extensions/browser/content_verify_job.cc View 1 7 chunks +35 lines, -16 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
asargent_no_longer_on_chrome
6 years, 6 months ago (2014-06-17 00:35:37 UTC) #1
Ken Rockot(use gerrit already)
Mostly good, just a few questions/comments. https://codereview.chromium.org/329303007/diff/60001/extensions/browser/content_hash_fetcher.cc File extensions/browser/content_hash_fetcher.cc (right): https://codereview.chromium.org/329303007/diff/60001/extensions/browser/content_hash_fetcher.cc#newcode475 extensions/browser/content_hash_fetcher.cc:475: jobs_.erase(found); What if ...
6 years, 6 months ago (2014-06-17 16:43:43 UTC) #2
asargent_no_longer_on_chrome
PTAL https://codereview.chromium.org/329303007/diff/60001/extensions/browser/content_hash_fetcher.cc File extensions/browser/content_hash_fetcher.cc (right): https://codereview.chromium.org/329303007/diff/60001/extensions/browser/content_hash_fetcher.cc#newcode475 extensions/browser/content_hash_fetcher.cc:475: jobs_.erase(found); On 2014/06/17 16:43:43, Ken Rockot wrote: > ...
6 years, 6 months ago (2014-06-18 00:13:51 UTC) #3
Ken Rockot(use gerrit already)
lgtm
6 years, 6 months ago (2014-06-18 00:22:49 UTC) #4
asargent_no_longer_on_chrome
The CQ bit was checked by asargent@chromium.org
6 years, 6 months ago (2014-06-18 05:10:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asargent@chromium.org/329303007/80001
6 years, 6 months ago (2014-06-18 05:13:14 UTC) #6
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 15:05:10 UTC) #7
Message was sent while issue was closed.
Change committed as 278071

Powered by Google App Engine
This is Rietveld 408576698