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

Issue 11615011: Small modifications to safebrowsing code to make it simpler to add the extension (Closed)

Created:
8 years ago by not at google - send to devlin
Modified:
7 years, 11 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, Brian Ryner
Visibility:
Public.

Description

Small modifications to safebrowsing code to make it simpler to add the extension blacklist, and clean up a few things. BUG=154149 TBR=cbentzel@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177719

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 8

Patch Set 3 : post-holiday changes, make tests pass #

Patch Set 4 : rebase #

Patch Set 5 : fix compiler #

Total comments: 26

Patch Set 6 : comments #

Total comments: 8

Patch Set 7 : comment and rebase (oops) #

Patch Set 8 : comment and rebase (oops) #

Patch Set 9 : WHAT BASE FILES ARE MISSING #

Patch Set 10 : add missing threat type on prerender tests #

Patch Set 11 : seriously there is a macro called check() in AssertMacros.h wow #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -251 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager.h View 1 2 3 4 5 5 chunks +24 lines, -17 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager.cc View 1 2 3 4 5 6 24 chunks +124 lines, -90 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 5 25 chunks +45 lines, -34 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 2 3 4 5 3 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 4 5 12 chunks +53 lines, -39 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 11 chunks +27 lines, -38 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.h View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
not at google - send to devlin
Hi Scott, here is the non-extension specific part of that code review pulled out. https://codereview.chromium.org/11615011/diff/2001/chrome/browser/safe_browsing/database_manager.h ...
8 years ago (2012-12-18 00:48:46 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/11615011/diff/2001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/11615011/diff/2001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode1026 chrome/browser/safe_browsing/safe_browsing_database.cc:1026: if (changes_detected_.count(safe_browsing_util::BINURL) || Turns out this stuff actually breaks ...
8 years ago (2012-12-18 17:20:22 UTC) #2
not at google - send to devlin
Coming back to this work post-holiday. Fixed tests. PTAL.
7 years, 11 months ago (2013-01-10 01:02:41 UTC) #3
Scott Hess - ex-Googler
Sorry for the long delay. I'm been dreading looking at safe-browsing code. I'm still not ...
7 years, 11 months ago (2013-01-11 23:44:04 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/11615011/diff/2001/chrome/browser/safe_browsing/database_manager.h File chrome/browser/safe_browsing/database_manager.h (right): https://codereview.chromium.org/11615011/diff/2001/chrome/browser/safe_browsing/database_manager.h#newcode69 chrome/browser/safe_browsing/database_manager.h:69: std::map<SBFullHash, SBThreatType> full_hash_threats; On 2013/01/11 23:44:05, shess wrote: > ...
7 years, 11 months ago (2013-01-14 23:00:54 UTC) #5
not at google - send to devlin
ping
7 years, 11 months ago (2013-01-17 16:30:42 UTC) #6
Scott Hess - ex-Googler
LGTM, with the changes to download_protection_service.cc reverted. The database_manager.cc comment comment you can take or ...
7 years, 11 months ago (2013-01-17 19:24:42 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/11615011/diff/33002/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/11615011/diff/33002/chrome/browser/safe_browsing/database_manager.cc#newcode78 chrome/browser/safe_browsing/database_manager.cc:78: DCHECK(!urls.empty() || !full_hashes.empty()); On 2013/01/17 19:24:42, shess wrote: > ...
7 years, 11 months ago (2013-01-18 01:02:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11615011/47002
7 years, 11 months ago (2013-01-18 01:08:01 UTC) #9
Scott Hess - ex-Googler
https://codereview.chromium.org/11615011/diff/33002/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/11615011/diff/33002/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode77 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:77: check.url_results[0] = badurls[gurl.spec()]; On 2013/01/18 01:02:42, kalman wrote: > ...
7 years, 11 months ago (2013-01-18 01:27:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11615011/47002
7 years, 11 months ago (2013-01-18 02:47:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11615011/49013
7 years, 11 months ago (2013-01-18 08:25:41 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-18 09:09:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11615011/59004
7 years, 11 months ago (2013-01-18 16:45:07 UTC) #14
commit-bot: I haz the power
7 years, 11 months ago (2013-01-18 18:48:09 UTC) #15
Message was sent while issue was closed.
Change committed as 177719

Powered by Google App Engine
This is Rietveld 408576698