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

Issue 2742913002: PVer4: Filter out the safe crxs before calling OnCheckExtensionsResult (Closed)

Created:
3 years, 9 months ago by vakh (use Gerrit instead)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, vakh+watch_chromium.org, woz
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PVer4: Filter out the safe crxs before calling OnCheckExtensionsResult The argument for OnCheckExtensionsResult should only contain the bad extensions, but PVer4 code was including all CRXs (blacklisted or not). BUG=700145 Review-Url: https://codereview.chromium.org/2742913002 Cr-Commit-Position: refs/heads/master@{#456212} Committed: https://chromium.googlesource.com/chromium/src/+/ec975c1d7990d87c1be9c03e0d94e38e20a7389b

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Fix date format #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -38 lines) Patch
M components/safe_browsing_db/v4_local_database_manager.h View 3 chunks +17 lines, -9 lines 2 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 5 chunks +37 lines, -20 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager_unittest.cc View 1 2 3 chunks +96 lines, -9 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
vakh (use Gerrit instead)
3 years, 9 months ago (2017-03-10 01:18:42 UTC) #4
vakh (use Gerrit instead)
Rebase
3 years, 9 months ago (2017-03-10 01:32:23 UTC) #5
Nathan Parker
https://codereview.chromium.org/2742913002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2742913002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc#newcode523 components/safe_browsing_db/v4_local_database_manager.cc:523: DCHECK(it != full_hashes.end()); If the server returns a full ...
3 years, 9 months ago (2017-03-10 01:36:23 UTC) #8
vakh (use Gerrit instead)
Rebase
3 years, 9 months ago (2017-03-10 01:39:24 UTC) #9
vakh (use Gerrit instead)
Fix date format
3 years, 9 months ago (2017-03-10 01:40:44 UTC) #13
vakh (use Gerrit instead)
Thanks. PTAL. https://codereview.chromium.org/2742913002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2742913002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc#newcode523 components/safe_browsing_db/v4_local_database_manager.cc:523: DCHECK(it != full_hashes.end()); On 2017/03/10 01:36:23, Nathan ...
3 years, 9 months ago (2017-03-10 01:44:50 UTC) #16
Nathan Parker
lgtm
3 years, 9 months ago (2017-03-10 23:09:19 UTC) #19
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/2742913002/60001
3 years, 9 months ago (2017-03-10 23:10:10 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://chromium.googlesource.com/chromium/src/+/ec975c1d7990d87c1be9c03e0d94e38e20a7389b
3 years, 9 months ago (2017-03-10 23:16:10 UTC) #24
Scott Hess - ex-Googler
LGTM. https://codereview.chromium.org/2742913002/diff/60001/components/safe_browsing_db/v4_local_database_manager.h File components/safe_browsing_db/v4_local_database_manager.h (right): https://codereview.chromium.org/2742913002/diff/60001/components/safe_browsing_db/v4_local_database_manager.h#newcode157 components/safe_browsing_db/v4_local_database_manager.h:157: std::vector<SBThreatType> full_hash_threat_types; This feels clunky, like it should ...
3 years, 9 months ago (2017-03-13 21:43:06 UTC) #25
vakh (use Gerrit instead)
3 years, 9 months ago (2017-03-13 21:45:39 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/2742913002/diff/60001/components/safe_browsin...
File components/safe_browsing_db/v4_local_database_manager.h (right):

https://codereview.chromium.org/2742913002/diff/60001/components/safe_browsin...
components/safe_browsing_db/v4_local_database_manager.h:157:
std::vector<SBThreatType> full_hash_threat_types;
On 2017/03/13 21:43:06, Scott Hess wrote:
> This feels clunky, like it should be a vector<pair<FullHash,SBThreatType>> in
> the first place (or some other vector-of-combo).  But that also feels clunky. 
> So I guess I'll just encourage thought on whether this has a more-elegant
> alternative.

Yes, I had the exact same argument in my head and chose to go with a this
because:
1. that would have been a bigger patch.
2. initializing full_hashes would have become less concise.

Powered by Google App Engine
This is Rietveld 408576698