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

Issue 781613002: Make SafeBrowsingDatabase's PrefixSets only updatable by swapping a new one in. (Closed)

Created:
6 years ago by gab
Modified:
6 years ago
Reviewers:
mattm
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@a2_threadchecks
Project:
chromium
Visibility:
Public.

Description

Make SafeBrowsingDatabase's PrefixSets only updatable by swapping a new one in. This is done by turning scoped_ptr<PrefixSet> into scoped_ptr<const PrefixSet>. While this doesn't fully address the issue of making sure there are no updates on other threads it does help any readers trying to prove this for themselves. BUG=None Committed: https://crrev.com/2298fc812850dd04509a4cd9e67ed9243952625f Cr-Commit-Position: refs/heads/master@{#307051}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase on patch 2 of CL 744183002 #

Patch Set 3 : review:mattm #

Patch Set 4 : rebase off of CL 744183002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -74 lines) Patch
M chrome/browser/safe_browsing/prefix_set.h View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/prefix_set.cc View 1 2 9 chunks +19 lines, -17 lines 0 comments Download
M chrome/browser/safe_browsing/prefix_set_unittest.cc View 23 chunks +23 lines, -24 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 2 3 5 chunks +21 lines, -18 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 9 chunks +10 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
gab
Matt PTAL. I'm trying to come up with a way to enforce auto-locking, etc. to ...
6 years ago (2014-12-03 21:48:17 UTC) #2
gab
On 2014/12/03 21:48:17, gab wrote: > Matt PTAL. > > I'm trying to come up ...
6 years ago (2014-12-03 21:49:51 UTC) #3
mattm
https://codereview.chromium.org/781613002/diff/1/chrome/browser/safe_browsing/prefix_set.cc File chrome/browser/safe_browsing/prefix_set.cc (right): https://codereview.chromium.org/781613002/diff/1/chrome/browser/safe_browsing/prefix_set.cc#newcode164 chrome/browser/safe_browsing/prefix_set.cc:164: return scoped_ptr<const PrefixSet>(); can these all be changed to ...
6 years ago (2014-12-03 23:08:19 UTC) #4
gab
PTAL, thanks! Gab https://codereview.chromium.org/781613002/diff/1/chrome/browser/safe_browsing/prefix_set.cc File chrome/browser/safe_browsing/prefix_set.cc (right): https://codereview.chromium.org/781613002/diff/1/chrome/browser/safe_browsing/prefix_set.cc#newcode164 chrome/browser/safe_browsing/prefix_set.cc:164: return scoped_ptr<const PrefixSet>(); On 2014/12/03 23:08:19, ...
6 years ago (2014-12-04 20:30:20 UTC) #5
mattm
lgtm
6 years ago (2014-12-04 22:25:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/781613002/60001
6 years ago (2014-12-05 17:53:20 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years ago (2014-12-05 18:43:31 UTC) #9
commit-bot: I haz the power
6 years ago (2014-12-05 18:44:26 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2298fc812850dd04509a4cd9e67ed9243952625f
Cr-Commit-Position: refs/heads/master@{#307051}

Powered by Google App Engine
This is Rietveld 408576698