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

Issue 2345573002: Each DatabaseManager gets to decide which stores to track (Closed)

Created:
4 years, 3 months ago by vakh (use Gerrit instead)
Modified:
4 years, 2 months ago
CC:
chromium-reviews, kcarattini, Scott Hess - ex-Googler
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Each DatabaseManager gets to decide which stores to track. V4LocalDatabaseManager now tracks the same lists for updates as well as full hashes. SafeBrowsingDatabaseManager tracks only API requests. Also, since hash_tables.h is deprecated, moved all code from base::hash_set to std::unordered_set using sed: $ sed -i 's/base::hash_set/std::unordered_set/g' * BUG=543161, 576864 Committed: https://crrev.com/824ff459fd925601083cd9204ef6eebaa76d39c1 Cr-Commit-Position: refs/heads/master@{#419014}

Patch Set 1 #

Patch Set 2 : reset V4GetHashManager on StopOnIOThread in V4LDBM also #

Patch Set 3 : Each DBmanager defines stores to look. base::hash_set -> std::unorderd_set. StoreToFileNameMap -> S… #

Total comments: 6

Patch Set 4 : Incorporated nparker@ feedback #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -75 lines) Patch
M components/safe_browsing_db/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/database_manager.h View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M components/safe_browsing_db/database_manager.cc View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M components/safe_browsing_db/v4_database.h View 1 2 3 5 chunks +27 lines, -14 lines 0 comments Download
M components/safe_browsing_db/v4_database.cc View 1 2 4 chunks +16 lines, -9 lines 0 comments Download
M components/safe_browsing_db/v4_database_unittest.cc View 1 2 16 chunks +18 lines, -18 lines 0 comments Download
M components/safe_browsing_db/v4_get_hash_protocol_manager.h View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M components/safe_browsing_db/v4_get_hash_protocol_manager.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M components/safe_browsing_db/v4_get_hash_protocol_manager_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 3 6 chunks +25 lines, -13 lines 4 comments Download
M components/safe_browsing_db/v4_local_database_manager_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_protocol_manager_util.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_protocol_manager_util.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (21 generated)
vakh (use Gerrit instead)
4 years, 3 months ago (2016-09-14 19:31:34 UTC) #4
vakh (use Gerrit instead)
reset V4GetHashManager on StopOnIOThread in V4LDBM also
4 years, 3 months ago (2016-09-14 19:40:17 UTC) #5
Nathan Parker
re: the CL desc -- We'll still need the V4GetHashProtocolManager on Android, where there's only ...
4 years, 3 months ago (2016-09-14 20:59:45 UTC) #10
vakh (use Gerrit instead)
On 2016/09/14 20:59:45, Nathan Parker wrote: > re: the CL desc -- We'll still need ...
4 years, 3 months ago (2016-09-14 21:22:17 UTC) #11
vakh (use Gerrit instead)
Each DBmanager defines stores to look. base::hash_set -> std::unorderd_set. StoreToFileNameMap -> StoreIdAndFilename struct
4 years, 3 months ago (2016-09-15 20:31:44 UTC) #12
vakh (use Gerrit instead)
On 2016/09/14 21:22:17, vakh (Varun Khaneja) wrote: > On 2016/09/14 20:59:45, Nathan Parker wrote: > ...
4 years, 3 months ago (2016-09-15 20:40:53 UTC) #15
Nathan Parker
lgtm https://codereview.chromium.org/2345573002/diff/40001/components/safe_browsing_db/database_manager.h File components/safe_browsing_db/database_manager.h (right): https://codereview.chromium.org/2345573002/diff/40001/components/safe_browsing_db/database_manager.h#newcode168 components/safe_browsing_db/database_manager.h:168: GetStoresForFullHashRequests(); Could this be protected? https://codereview.chromium.org/2345573002/diff/40001/components/safe_browsing_db/v4_database.h File components/safe_browsing_db/v4_database.h ...
4 years, 3 months ago (2016-09-15 21:12:54 UTC) #18
vakh (use Gerrit instead)
Incorporated nparker@ feedback
4 years, 3 months ago (2016-09-15 21:22:37 UTC) #19
Scott Hess - ex-Googler
lgtm
4 years, 3 months ago (2016-09-15 21:24:01 UTC) #23
vakh (use Gerrit instead)
https://codereview.chromium.org/2345573002/diff/40001/components/safe_browsing_db/database_manager.h File components/safe_browsing_db/database_manager.h (right): https://codereview.chromium.org/2345573002/diff/40001/components/safe_browsing_db/database_manager.h#newcode168 components/safe_browsing_db/database_manager.h:168: GetStoresForFullHashRequests(); On 2016/09/15 21:12:54, Nathan Parker wrote: > Could ...
4 years, 3 months ago (2016-09-15 21:33:37 UTC) #24
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/2345573002/60001
4 years, 3 months ago (2016-09-15 21:34:09 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 22:23:25 UTC) #31
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/824ff459fd925601083cd9204ef6eebaa76d39c1 Cr-Commit-Position: refs/heads/master@{#419014}
4 years, 3 months ago (2016-09-15 22:27:08 UTC) #33
kcarattini
https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsing_db/v4_local_database_manager.cc#newcode222 components/safe_browsing_db/v4_local_database_manager.cc:222: DCHECK(!store_id_file_names_.empty()); Just checking that this list includes API checks ...
4 years, 3 months ago (2016-09-18 12:20:46 UTC) #35
vakh (use Gerrit instead)
https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsing_db/v4_local_database_manager.cc#newcode222 components/safe_browsing_db/v4_local_database_manager.cc:222: DCHECK(!store_id_file_names_.empty()); On 2016/09/18 12:20:46, kcarattini wrote: > Just checking ...
4 years, 3 months ago (2016-09-19 17:03:06 UTC) #36
kcarattini
https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsing_db/v4_local_database_manager.cc#newcode222 components/safe_browsing_db/v4_local_database_manager.cc:222: DCHECK(!store_id_file_names_.empty()); On 2016/09/19 17:03:05, vakh (Varun Khaneja) wrote: > ...
4 years, 2 months ago (2016-09-26 00:23:34 UTC) #37
vakh (use Gerrit instead)
4 years, 2 months ago (2016-09-26 06:09:55 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsin...
File components/safe_browsing_db/v4_local_database_manager.cc (right):

https://codereview.chromium.org/2345573002/diff/60001/components/safe_browsin...
components/safe_browsing_db/v4_local_database_manager.cc:222:
DCHECK(!store_id_file_names_.empty());
On 2016/09/26 00:23:34, kcarattini wrote:
> On 2016/09/19 17:03:05, vakh (Varun Khaneja) wrote:
> > On 2016/09/18 12:20:46, kcarattini wrote:
> > > Just checking that this list includes API checks as well?
> > 
> > SafeBrowsingDatabaseManager includes API checks. V4LocalDatabaseManager
> doesn't
> > include API checks *yet*,  but it's straightforward to add it by adding a
> store
> > for it in GetStoreIdAndFileNames()
> 
> So that means that until it's added to V$, API checks will still Use the V3
> LocalDatabaseManager and RemoteDatabaseManager. Is that ok? Are other things
> still using the v3 database manager?

That's OK. Other things are sill using PVer3 but I am going to additionally
enable V4 for Malware and Phishing this week.

Powered by Google App Engine
This is Rietveld 408576698