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

Issue 1579183003: Only call UrlToFullHashes once from LocalSafeBrowsingDatabaseManager::CheckBrowseUrl (Closed)

Created:
4 years, 11 months ago by Joe Mason
Modified:
4 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only call UrlToFullHashes once from LocalSafeBrowsingDatabaseManager::CheckBrowseUrl Add ContainsBrowseHashes and ContainsUnwantedSoftwareHashes to SafeBrowsingDatabase, to parallel ContainsBrowseUrl and ContainsUnwantedSoftwareUrl. These functions take the full hash set instead of the url, so that the caller can look up both "browse" and "unwanted software" data for the same url without incurring the overhead of calling UrlToFullHashes twice. BUG=576750 Committed: https://crrev.com/1fbfd5fca8cc6270032b3c8ea9d1df6402af4e8c Cr-Commit-Position: refs/heads/master@{#369755}

Patch Set 1 #

Patch Set 2 : Fix param name #

Total comments: 2

Patch Set 3 : Add the new methods to TestSafeBrowsingDatabase #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -103 lines) Patch
M chrome/browser/safe_browsing/local_database_manager.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 4 chunks +29 lines, -7 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 2 chunks +23 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 24 chunks +126 lines, -77 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 7 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Joe Mason
4 years, 11 months ago (2016-01-12 18:30:48 UTC) #2
Joe Mason
Ping? I would like to get this committed for the M49 branch tomorrow.
4 years, 11 months ago (2016-01-14 15:44:26 UTC) #3
chromium-reviews
I'm ooo today, will try to get to this tonight. Varun -- can you take ...
4 years, 11 months ago (2016-01-14 18:16:59 UTC) #4
vakh (use Gerrit instead)
lgtm https://codereview.chromium.org/1579183003/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/1579183003/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode804 chrome/browser/safe_browsing/safe_browsing_database.cc:804: bool SafeBrowsingDatabaseNew::ContainsUnwantedSoftwareUrl( We could completely remove these Contains.*Url ...
4 years, 11 months ago (2016-01-14 18:57:48 UTC) #6
Joe Mason
https://codereview.chromium.org/1579183003/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/1579183003/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode804 chrome/browser/safe_browsing/safe_browsing_database.cc:804: bool SafeBrowsingDatabaseNew::ContainsUnwantedSoftwareUrl( On 2016/01/14 18:57:47, vakh wrote: > We ...
4 years, 11 months ago (2016-01-14 19:24:08 UTC) #7
Joe Mason
On 2016/01/14 18:57:48, vakh wrote: > https://codereview.chromium.org/1579183003/diff/20001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode804 > chrome/browser/safe_browsing/safe_browsing_database.cc:804: bool > SafeBrowsingDatabaseNew::ContainsUnwantedSoftwareUrl( > We could ...
4 years, 11 months ago (2016-01-14 20:19:58 UTC) #8
vakh (old account. dont use)
lgtm
4 years, 11 months ago (2016-01-14 21:34:02 UTC) #10
vakh (use Gerrit instead)
lgtm LGTM. Sorry, using the correct account now.
4 years, 11 months ago (2016-01-14 21:35:05 UTC) #11
Nathan Parker
lgtm +1 to removing the *ByUrl() functions since they have no value now. I'm fine ...
4 years, 11 months ago (2016-01-15 01:08:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1579183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1579183003/40001
4 years, 11 months ago (2016-01-15 05:17:47 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/117562) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 11 months ago (2016-01-15 05:20:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1579183003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1579183003/60001
4 years, 11 months ago (2016-01-15 15:32:51 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-15 16:10:46 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2016-01-15 16:11:58 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1fbfd5fca8cc6270032b3c8ea9d1df6402af4e8c
Cr-Commit-Position: refs/heads/master@{#369755}

Powered by Google App Engine
This is Rietveld 408576698