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

Issue 2327833002: Address HandlerLeak lint warnings. (Closed)

Created:
4 years, 3 months ago by estevenson
Modified:
4 years, 2 months ago
Reviewers:
Ted C, agrieve
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Address HandlerLeak lint warnings. Updated several Handler instances to use static inner classes with WeakReferences to the outer class to avoid memory leaks. Created TidyHandler to make this cleaner. BUG=635567 Committed: https://crrev.com/69affba419bbaf5d66355d0526e1bf6830e60288 Cr-Commit-Position: refs/heads/master@{#420619}

Patch Set 1 #

Patch Set 2 : Remove suppressions. #

Total comments: 1

Patch Set 3 : Explicitly clean up Handlers instead of using WeakReferences #

Total comments: 2

Patch Set 4 : tedchoc's comment #

Messages

Total messages: 20 (11 generated)
estevenson
ptal Ted, this CL addresses several HandlerLeak lint warnings.
4 years, 3 months ago (2016-09-09 17:18:56 UTC) #4
Ted C
https://codereview.chromium.org/2327833002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/TidyHandler.java File chrome/android/java/src/org/chromium/chrome/browser/TidyHandler.java (right): https://codereview.chromium.org/2327833002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/TidyHandler.java#newcode40 chrome/android/java/src/org/chromium/chrome/browser/TidyHandler.java:40: private WeakReference<T> mClassReference; For the places that use this, ...
4 years, 3 months ago (2016-09-13 17:25:55 UTC) #5
estevenson
ptal Ted, sorry for the delay.
4 years, 2 months ago (2016-09-23 00:52:51 UTC) #10
Ted C
lgtm (w/ update change comment) https://codereview.chromium.org/2327833002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java (right): https://codereview.chromium.org/2327833002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java#newcode223 chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java:223: public void cleanupHandler() { ...
4 years, 2 months ago (2016-09-23 01:01:18 UTC) #11
estevenson
+agrieve for suppressions.xml OWNERS https://codereview.chromium.org/2327833002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java (right): https://codereview.chromium.org/2327833002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java#newcode223 chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java:223: public void cleanupHandler() { On ...
4 years, 2 months ago (2016-09-23 01:25:40 UTC) #13
agrieve
On 2016/09/23 01:25:40, estevenson wrote: > +agrieve for suppressions.xml OWNERS > > https://codereview.chromium.org/2327833002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.java > File ...
4 years, 2 months ago (2016-09-23 01:48:28 UTC) #14
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/2327833002/60001
4 years, 2 months ago (2016-09-23 14:54:07 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-23 16:26:45 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-09-23 16:29:55 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/69affba419bbaf5d66355d0526e1bf6830e60288
Cr-Commit-Position: refs/heads/master@{#420619}

Powered by Google App Engine
This is Rietveld 408576698