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

Issue 372663002: Fix BookmarkPermanentNode leak in ChromeBookmarkClient (Closed)

Created:
6 years, 5 months ago by Sigurður Ásgeirsson
Modified:
6 years, 5 months ago
Reviewers:
Joao da Silva, gab, brettw
CC:
chromium-reviews, tfarina, browser-components-watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Ownership of the bookmark node is temporarily passed to the task to avoid leaking it if the task never runs. This fixes a leak that occurs in Profile browser tests. R=gab@chromium.org,joaodasilva@chromium.org TBR=brettw@chromium.org BUG=391508 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281836

Patch Set 1 : Depends on issue 349263004. #

Total comments: 6

Patch Set 2 : Address Gab's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M chrome/browser/bookmarks/chrome_bookmark_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.cc View 1 4 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Sigurður Ásgeirsson
PTAL - this is a diff from https://codereview.chromium.org/349263004/, as I intend to land that first, ...
6 years, 5 months ago (2014-07-07 17:59:13 UTC) #1
gab
https://codereview.chromium.org/372663002/diff/80001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): https://codereview.chromium.org/372663002/diff/80001/chrome/browser/bookmarks/chrome_bookmark_client.cc#newcode168 chrome/browser/bookmarks/chrome_bookmark_client.cc:168: // The ownership of maanaged_node_ is in limbo until ...
6 years, 5 months ago (2014-07-07 18:12:47 UTC) #2
gab
https://codereview.chromium.org/372663002/diff/80001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): https://codereview.chromium.org/372663002/diff/80001/chrome/browser/bookmarks/chrome_bookmark_client.cc#newcode9 chrome/browser/bookmarks/chrome_bookmark_client.cc:9: #include "base/debug/leak_annotations.h" Also, rm this include
6 years, 5 months ago (2014-07-07 18:13:38 UTC) #3
Sigurður Ásgeirsson
Thanks - PTAL. https://codereview.chromium.org/372663002/diff/80001/chrome/browser/bookmarks/chrome_bookmark_client.cc File chrome/browser/bookmarks/chrome_bookmark_client.cc (right): https://codereview.chromium.org/372663002/diff/80001/chrome/browser/bookmarks/chrome_bookmark_client.cc#newcode9 chrome/browser/bookmarks/chrome_bookmark_client.cc:9: #include "base/debug/leak_annotations.h" On 2014/07/07 18:13:38, gab ...
6 years, 5 months ago (2014-07-07 18:40:19 UTC) #4
gab
lgtm since you're only making lifetime management better without making the overall model worse, but ...
6 years, 5 months ago (2014-07-07 19:00:47 UTC) #5
Joao da Silva
On 2014/07/07 19:00:47, gab wrote: > lgtm since you're only making lifetime management better without ...
6 years, 5 months ago (2014-07-08 15:07:04 UTC) #6
Sigurður Ásgeirsson
The CQ bit was checked by siggi@chromium.org
6 years, 5 months ago (2014-07-08 15:38:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siggi@chromium.org/372663002/100001
6 years, 5 months ago (2014-07-08 15:39:13 UTC) #8
Sigurður Ásgeirsson
On 2014/07/08 15:07:04, Joao da Silva wrote: > On 2014/07/07 19:00:47, gab wrote: > > ...
6 years, 5 months ago (2014-07-08 15:39:15 UTC) #9
gab
On 2014/07/08 15:07:04, Joao da Silva wrote: > On 2014/07/07 19:00:47, gab wrote: > > ...
6 years, 5 months ago (2014-07-08 15:39:17 UTC) #10
gab
> Thanks, submitting as-is, as I don't have time to work on this further for ...
6 years, 5 months ago (2014-07-08 15:44:00 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 17:37:00 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 17:40:52 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/78546)
6 years, 5 months ago (2014-07-08 17:40:53 UTC) #14
Sigurður Ásgeirsson
The CQ bit was checked by siggi@chromium.org
6 years, 5 months ago (2014-07-08 18:09:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siggi@chromium.org/372663002/100001
6 years, 5 months ago (2014-07-08 18:11:31 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 21:18:15 UTC) #17
Message was sent while issue was closed.
Change committed as 281836

Powered by Google App Engine
This is Rietveld 408576698