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

Issue 1983723002: Reland: Initialize and reset V4LocalDBManager. Instantiate V4Stores. (Closed)

Created:
4 years, 7 months ago by vakh (use Gerrit instead)
Modified:
4 years, 7 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

Reland: Initialize and reset V4LocalDBManager. Instantiate V4Stores. A rough sketch of how this works is here: https://goto.google.com/pver4-LoadUpdateDatabase-doc This relands https://codereview.chromium.org/1954393002 which was reverted by https://codereview.chromium.org/1983603002 Reason for failure: StopOnIOThread ran first and reset v4_update_protocol_manager_, which we were later tried to dereference in DatabaseReady() -- Original commit: http://crrev.com/32b9468ab5177534cb155b2d222611a6bca16c98 Which was reverted as: http://crrev.com/517133dfc95a9ca2b599bfe7452205e5b5d81fd4 This CL reverts commit http://crrev.com/517133dfc95a9ca2b599bfe7452205e5b5d81fd4 -- BUG=543161 Committed: https://crrev.com/26771182e06d28496aca4c73e095d3c9a43713ce Cr-Commit-Position: refs/heads/master@{#393989}

Patch Set 1 : Reverting the old revert: git revert 517133d #

Patch Set 2 : Add check for v4_update_protocol_manager_ on DatabaseReady callback #

Total comments: 7

Patch Set 3 : Check enabled_ before resetting v4_database_ and scheduling next update #

Total comments: 1

Patch Set 4 : git fetch && git pull #

Patch Set 5 : Destory v4_database on its taskrunner instead of the IO thread #

Patch Set 6 : schedule destroying the v4_database off IO thread if the local_db_manager isn't enabled, and update… #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -53 lines) Patch
M chrome/browser/safe_browsing/services_delegate_impl.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M components/safe_browsing_db.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/BUILD.gn View 2 chunks +5 lines, -1 line 0 comments Download
M components/safe_browsing_db/v4_database.h View 1 2 3 4 4 chunks +32 lines, -9 lines 0 comments Download
M components/safe_browsing_db/v4_database.cc View 1 2 3 4 1 chunk +72 lines, -10 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.h View 4 chunks +21 lines, -4 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 3 4 5 5 chunks +73 lines, -9 lines 1 comment Download
M components/safe_browsing_db/v4_store.h View 1 chunk +17 lines, -0 lines 0 comments Download
A components/safe_browsing_db/v4_store.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager.h View 4 chunks +8 lines, -3 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager.cc View 10 chunks +41 lines, -13 lines 0 comments Download
M components/safe_browsing_db/v4_update_protocol_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
vakh (use Gerrit instead)
Add check for v4_update_protocol_manager_ on DatabaseReady callback
4 years, 7 months ago (2016-05-16 06:26:40 UTC) #1
vakh (use Gerrit instead)
4 years, 7 months ago (2016-05-16 06:28:10 UTC) #3
Scott Hess - ex-Googler
https://codereview.chromium.org/1983723002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/1983723002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc#newcode216 components/safe_browsing_db/v4_local_database_manager.cc:216: // destroy v4_update_protocol_manager_ Does this mean that StopOnIOThread() was ...
4 years, 7 months ago (2016-05-16 07:55:25 UTC) #4
vakh (use Gerrit instead)
Check enabled_ before resetting v4_database_ and scheduling next update
4 years, 7 months ago (2016-05-16 18:29:15 UTC) #5
vakh (use Gerrit instead)
https://codereview.chromium.org/1983723002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/1983723002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc#newcode216 components/safe_browsing_db/v4_local_database_manager.cc:216: // destroy v4_update_protocol_manager_ On 2016/05/16 07:55:25, Scott Hess wrote: ...
4 years, 7 months ago (2016-05-16 18:36:15 UTC) #6
Nathan Parker
lgtm
4 years, 7 months ago (2016-05-16 18:40:01 UTC) #7
Scott Hess - ex-Googler
https://codereview.chromium.org/1983723002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/1983723002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc#newcode230 components/safe_browsing_db/v4_local_database_manager.cc:230: v4_database_.reset(); On 2016/05/16 18:36:15, vakh wrote: > On 2016/05/16 ...
4 years, 7 months ago (2016-05-16 19:49:53 UTC) #8
vakh (use Gerrit instead)
git fetch && git pull
4 years, 7 months ago (2016-05-16 20:02:16 UTC) #9
Scott Hess - ex-Googler
Also, in your new CL description, the fact that this is relanding a reverted CL ...
4 years, 7 months ago (2016-05-16 20:20:09 UTC) #10
vakh (use Gerrit instead)
Destory v4_database on its taskrunner instead of the IO thread
4 years, 7 months ago (2016-05-16 20:45:33 UTC) #13
vakh (use Gerrit instead)
I've edited to CL description to include: 1. Direct link to original CL. 2. Direct ...
4 years, 7 months ago (2016-05-16 20:50:21 UTC) #14
vakh (use Gerrit instead)
schedule destroying the v4_database off IO thread if the local_db_manager isn't enabled, and update a ...
4 years, 7 months ago (2016-05-16 21:48:58 UTC) #16
Scott Hess - ex-Googler
lgtm. https://codereview.chromium.org/1983723002/diff/100001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/1983723002/diff/100001/components/safe_browsing_db/v4_local_database_manager.cc#newcode221 components/safe_browsing_db/v4_local_database_manager.cc:221: V4Database::Destroy(std::move(v4_database)); Good call! This is what I love ...
4 years, 7 months ago (2016-05-16 22:17:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983723002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983723002/100001
4 years, 7 months ago (2016-05-16 22:36:26 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-17 00:17:09 UTC) #22
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/26771182e06d28496aca4c73e095d3c9a43713ce Cr-Commit-Position: refs/heads/master@{#393989}
4 years, 7 months ago (2016-05-17 00:19:00 UTC) #24
qyearsley
4 years, 7 months ago (2016-05-17 21:03:47 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1984283003/ by qyearsley@chromium.org.

The reason for reverting is: Speculative revert for http://crbug.com/612523;
will re-land if that builder still fails the same tests after the revert.

Powered by Google App Engine
This is Rietveld 408576698