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

Issue 2649643002: [S] Use a weak_factory for V4Database callbacks + test (Closed)

Created:
3 years, 11 months ago by vakh (use Gerrit instead)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, vakh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[S] Use a weak_factory for V4Database callbacks + test For details about why this crash may be happening, and why this may be the right fix, see: http://crbug.com/683147#c5 BUG=683147 Review-Url: https://codereview.chromium.org/2649643002 Cr-Commit-Position: refs/heads/master@{#445342} Committed: https://chromium.googlesource.com/chromium/src/+/77c324f4a61823e06b32cbd10b3c3434959ca367

Patch Set 1 #

Patch Set 2 : InvalidateWeakPtrs in V4Database::Destroy #

Total comments: 5

Patch Set 3 : Nit: s/weak_factory_/weak_factory_on_io_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -6 lines) Patch
M components/safe_browsing_db/v4_database.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_database.cc View 1 2 4 chunks +10 lines, -6 lines 0 comments Download
M components/safe_browsing_db/v4_database_unittest.cc View 2 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
vakh (use Gerrit instead)
3 years, 11 months ago (2017-01-20 22:21:40 UTC) #3
vakh (use Gerrit instead)
Nit: remove FRIEND_TEST_ALL_PREFIXES
3 years, 11 months ago (2017-01-20 22:23:21 UTC) #5
vakh (use Gerrit instead)
InvalidateWeakPtrs in V4Database::Destroy
3 years, 11 months ago (2017-01-20 22:42:54 UTC) #9
Scott Hess - ex-Googler
I don't think this works. Weak pointers and their factories don't have locks to protect ...
3 years, 11 months ago (2017-01-20 22:48:15 UTC) #12
Scott Hess - ex-Googler
On 2017/01/20 22:48:15, Scott Hess wrote: > I don't think this works. Weak pointers and ...
3 years, 11 months ago (2017-01-20 23:09:22 UTC) #13
Scott Hess - ex-Googler
OK, I think LGTM, then. In the broader scope, if there's going to be a ...
3 years, 11 months ago (2017-01-20 23:21:00 UTC) #14
vakh (use Gerrit instead)
On 2017/01/20 23:09:22, Scott Hess wrote: > On 2017/01/20 22:48:15, Scott Hess wrote: > > ...
3 years, 11 months ago (2017-01-20 23:49:35 UTC) #15
Nathan Parker
lgtm I'm still not sure there isn't a small (smaller than before) race here, but ...
3 years, 11 months ago (2017-01-21 01:01:09 UTC) #18
vakh (use Gerrit instead)
Nit: s/weak_factory_/weak_factory_on_io_
3 years, 11 months ago (2017-01-21 01:16:11 UTC) #19
vakh (use Gerrit instead)
https://codereview.chromium.org/2649643002/diff/40001/components/safe_browsing_db/v4_database.cc File components/safe_browsing_db/v4_database.cc (right): https://codereview.chromium.org/2649643002/diff/40001/components/safe_browsing_db/v4_database.cc#newcode227 components/safe_browsing_db/v4_database.cc:227: weak_factory_.GetWeakPtr(), callback_task_runner, On 2017/01/21 01:01:08, Nathan Parker wrote: > ...
3 years, 11 months ago (2017-01-21 01:16:31 UTC) #23
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/2649643002/60001
3 years, 11 months ago (2017-01-21 01:16:44 UTC) #25
Scott Hess - ex-Googler
https://codereview.chromium.org/2649643002/diff/40001/components/safe_browsing_db/v4_database.cc File components/safe_browsing_db/v4_database.cc (right): https://codereview.chromium.org/2649643002/diff/40001/components/safe_browsing_db/v4_database.cc#newcode227 components/safe_browsing_db/v4_database.cc:227: weak_factory_.GetWeakPtr(), callback_task_runner, On 2017/01/21 01:16:31, vakh (Varun Khaneja) wrote: ...
3 years, 11 months ago (2017-01-21 04:18:20 UTC) #30
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/2649643002/60001
3 years, 11 months ago (2017-01-23 07:13:47 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 08:42:03 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/77c324f4a61823e06b32cbd10b3c...

Powered by Google App Engine
This is Rietveld 408576698