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

Issue 910953002: Move SafeBrowsing to the blocking pool via an experiment. (Closed)

Created:
5 years, 10 months ago by Alexei Svitkine (slow)
Modified:
5 years, 10 months ago
Reviewers:
gab, grt (UTC plus 2), mattm
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

Move SafeBrowsing to the blocking pool via an experiment. Most of the change is updating the threading checks. Using an experiment so that we can see what impact, if any, this has on start up performance. I suspect it's small, since it's just one of a thousand cuts - but we'll see. Plan is to clean out the experiment in a follow-up CL (making the new behavior the default) once we've gotten enough data from the wild. BUG=450037 Committed: https://crrev.com/be033cca03e50e1bba363d7dc2e56ad38f9196da Cr-Commit-Position: refs/heads/master@{#317857}

Patch Set 1 : (Version which defaults to new behavior to verify bots.) #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 29

Patch Set 4 : Address gab's comments. #

Patch Set 5 : Fix method name in test. #

Total comments: 25

Patch Set 6 : Address more comments. #

Total comments: 5

Patch Set 7 : Rebase. #

Patch Set 8 : Address more comments. #

Patch Set 9 : Fix browsertest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -209 lines) Patch
M chrome/browser/safe_browsing/database_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager.cc View 1 2 3 4 5 6 7 19 chunks +62 lines, -48 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 2 3 4 5 6 7 8 chunks +46 lines, -44 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 4 5 6 7 32 chunks +81 lines, -80 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 6 chunks +28 lines, -25 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file_unittest.cc View 1 2 3 4 7 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
Alexei Svitkine (slow)
gab: PTAL This turned out more hairy than I expected.
5 years, 10 months ago (2015-02-18 18:50:48 UTC) #8
grt (UTC plus 2)
https://codereview.chromium.org/910953002/diff/130001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/910953002/diff/130001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode1623 chrome/browser/safe_browsing/safe_browsing_database.cc:1623: base::MessageLoop::current()->PostTask(FROM_HERE, threads in the blocking pool run a message ...
5 years, 10 months ago (2015-02-18 19:14:05 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/910953002/diff/130001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/910953002/diff/130001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode1623 chrome/browser/safe_browsing/safe_browsing_database.cc:1623: base::MessageLoop::current()->PostTask(FROM_HERE, On 2015/02/18 19:14:05, grt wrote: > threads in ...
5 years, 10 months ago (2015-02-18 20:11:50 UTC) #11
gab
Woot, lg, thanks! https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/database_manager.cc#newcode658 chrome/browser/safe_browsing/database_manager.cc:658: // Don't create the thread under ...
5 years, 10 months ago (2015-02-19 14:38:23 UTC) #12
gab
https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode1623 chrome/browser/safe_browsing/safe_browsing_database.cc:1623: db_task_runner_->PostTask( Oh also, interesting that this posts back to ...
5 years, 10 months ago (2015-02-19 14:41:21 UTC) #13
Alexei Svitkine (slow)
Addressed comments, PTAL. Also +mattm@ for owners review. https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/database_manager.cc#newcode658 chrome/browser/safe_browsing/database_manager.cc:658: // ...
5 years, 10 months ago (2015-02-20 15:42:45 UTC) #15
mattm
lgtm https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/910953002/diff/150001/chrome/browser/safe_browsing/database_manager.cc#newcode765 chrome/browser/safe_browsing/database_manager.cc:765: safe_browsing_thread_.reset(); On 2015/02/20 15:42:44, Alexei Svitkine wrote: > ...
5 years, 10 months ago (2015-02-21 02:03:06 UTC) #16
gab
lg, couple comments, mostly around more checks and const-ness. Thanks, Gab https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (left): ...
5 years, 10 months ago (2015-02-23 16:33:55 UTC) #17
Alexei Svitkine (slow)
PTAL. https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (left): https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc#oldcode653 chrome/browser/safe_browsing/database_manager.cc:653: DCHECK(!safe_browsing_thread_.get()); On 2015/02/23 16:33:55, gab wrote: > This ...
5 years, 10 months ago (2015-02-23 19:03:27 UTC) #19
mattm
https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (left): https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc#oldcode653 chrome/browser/safe_browsing/database_manager.cc:653: DCHECK(!safe_browsing_thread_.get()); On 2015/02/23 19:03:27, Alexei Svitkine wrote: > On ...
5 years, 10 months ago (2015-02-23 19:27:36 UTC) #20
gab
lgtm w/ one last comment tweak and Matt's last comment https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (left): https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc#oldcode653 ...
5 years, 10 months ago (2015-02-23 19:53:33 UTC) #21
grt (UTC plus 2)
https://codereview.chromium.org/910953002/diff/210001/chrome/browser/safe_browsing/safe_browsing_database.h File chrome/browser/safe_browsing/safe_browsing_database.h (right): https://codereview.chromium.org/910953002/diff/210001/chrome/browser/safe_browsing/safe_browsing_database.h#newcode37 chrome/browser/safe_browsing/safe_browsing_database.h:37: scoped_refptr<base::SequencedTaskRunner> db_task_runner, const scoped_refptr<base::SequencedTaskRunner>& db_task_runner, here and everywhere else ...
5 years, 10 months ago (2015-02-23 20:37:53 UTC) #22
Alexei Svitkine (slow)
Thanks, PTAL. https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (left): https://codereview.chromium.org/910953002/diff/190001/chrome/browser/safe_browsing/database_manager.cc#oldcode653 chrome/browser/safe_browsing/database_manager.cc:653: DCHECK(!safe_browsing_thread_.get()); On 2015/02/23 19:27:36, mattm wrote: > ...
5 years, 10 months ago (2015-02-24 18:08:58 UTC) #23
grt (UTC plus 2)
lgtm https://codereview.chromium.org/910953002/diff/210001/chrome/browser/safe_browsing/safe_browsing_database.h File chrome/browser/safe_browsing/safe_browsing_database.h (right): https://codereview.chromium.org/910953002/diff/210001/chrome/browser/safe_browsing/safe_browsing_database.h#newcode37 chrome/browser/safe_browsing/safe_browsing_database.h:37: scoped_refptr<base::SequencedTaskRunner> db_task_runner, On 2015/02/24 18:08:58, Alexei Svitkine wrote: ...
5 years, 10 months ago (2015-02-24 18:26:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910953002/270001
5 years, 10 months ago (2015-02-24 18:40:38 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:270001)
5 years, 10 months ago (2015-02-24 19:45:26 UTC) #28
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 19:46:30 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/be033cca03e50e1bba363d7dc2e56ad38f9196da
Cr-Commit-Position: refs/heads/master@{#317857}

Powered by Google App Engine
This is Rietveld 408576698