|
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
Total comments: 5
|
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
|
Total messages: 7 (0 generated)
|