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

Issue 2803063003: Fix leaking NewTabPageView(s). (Closed)

Created:
3 years, 8 months ago by Ted C
Modified:
3 years, 8 months ago
Reviewers:
Bernhard Bauer, dgn, ssid
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix leaking NewTabPageView(s). The problem is that it was registering as a TabObserver but not removing itself. This moves the TabObserver logic into NewTabPage, which does handle proper clean up. BUG=708710 Review-Url: https://codereview.chromium.org/2803063003 Cr-Commit-Position: refs/heads/master@{#462741} Committed: https://chromium.googlesource.com/chromium/src/+/2daf853b6542cd08c23618991790870c07fb91f4

Patch Set 1 #

Patch Set 2 : Remove unneeded null check and remove unused import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -7 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java View 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Ted C
PTAL bauerb||dgn - NTP ssid to see if this addresses the leak
3 years, 8 months ago (2017-04-06 23:41:13 UTC) #2
ssid
lgtm, this fixes the leak
3 years, 8 months ago (2017-04-07 00:01:19 UTC) #3
Bernhard Bauer
LGTM, thanks!
3 years, 8 months ago (2017-04-07 00:58:19 UTC) #4
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/2803063003/20001
3 years, 8 months ago (2017-04-07 01:05:11 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/2daf853b6542cd08c23618991790870c07fb91f4
3 years, 8 months ago (2017-04-07 01:52:03 UTC) #9
dgn
On 2017/04/07 01:52:03, commit-bot: I haz the power wrote: > Committed patchset #2 (id:20001) as ...
3 years, 8 months ago (2017-04-07 08:49:09 UTC) #10
Ted C
3 years, 8 months ago (2017-04-07 16:32:30 UTC) #11
Message was sent while issue was closed.
On 2017/04/07 08:49:09, dgn wrote:
> On 2017/04/07 01:52:03, commit-bot: I haz the power wrote:
> > Committed patchset #2 (id:20001) as
> >
>
https://chromium.googlesource.com/chromium/src/+/2daf853b6542cd08c23618991790...
> 
> lgtm, thanks! Does that also fix https://crbug.com/708836 ?

I suspect it does fix that as well.  We had the potential to hold onto
a lot of memory with this, so OOMs were much more likely.

Fingers crossed it is an easy fix.

Powered by Google App Engine
This is Rietveld 408576698