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

Issue 1365893002: Fix LifeCycleWatcher in ScopedVectorTest to not be referenced after being destructed. (Closed)

Created:
5 years, 3 months ago by Anand Mistry (off Chromium)
Modified:
5 years, 2 months ago
Reviewers:
danakj
CC:
chromium-reviews, gavinp+memory_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix LifeCycleWatcher in ScopedVectorTest to not be referenced after being destructed. If the LifeCycleObject owned by LifeCycleWatcher still exists at the time LifeCycleWatcher is destroyed, the LifeCycleObject's destructor will call LifeCycleWatcher::OnLifeCycleDestroy() after LifeCycleWatcher's destructor has finished running. BUG=535321 Committed: https://crrev.com/8723a2c2a90e060006d1b45a6ce58bacf17bb9d8 Cr-Commit-Position: refs/heads/master@{#350683}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M base/memory/scoped_vector_unittest.cc View 3 chunks +13 lines, -2 lines 2 comments Download

Messages

Total messages: 10 (2 generated)
Anand Mistry (off Chromium)
5 years, 3 months ago (2015-09-24 05:35:24 UTC) #2
danakj
LGTM
5 years, 2 months ago (2015-09-24 17:42:19 UTC) #3
danakj
https://codereview.chromium.org/1365893002/diff/1/base/memory/scoped_vector_unittest.cc File base/memory/scoped_vector_unittest.cc (right): https://codereview.chromium.org/1365893002/diff/1/base/memory/scoped_vector_unittest.cc#newcode71 base/memory/scoped_vector_unittest.cc:71: // Stop watching the watched object. Without this, the ...
5 years, 2 months ago (2015-09-24 17:43:52 UTC) #4
Anand Mistry (off Chromium)
https://codereview.chromium.org/1365893002/diff/1/base/memory/scoped_vector_unittest.cc File base/memory/scoped_vector_unittest.cc (right): https://codereview.chromium.org/1365893002/diff/1/base/memory/scoped_vector_unittest.cc#newcode71 base/memory/scoped_vector_unittest.cc:71: // Stop watching the watched object. Without this, the ...
5 years, 2 months ago (2015-09-24 21:56:27 UTC) #5
danakj
I see. We could clear the vector, but this seems fine and the branch doesn't ...
5 years, 2 months ago (2015-09-24 22:00:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365893002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365893002/1
5 years, 2 months ago (2015-09-24 22:12:42 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-09-24 22:28:39 UTC) #9
commit-bot: I haz the power
5 years, 2 months ago (2015-09-24 22:29:50 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8723a2c2a90e060006d1b45a6ce58bacf17bb9d8
Cr-Commit-Position: refs/heads/master@{#350683}

Powered by Google App Engine
This is Rietveld 408576698