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

Issue 11802002: [Android] Fix leak in Java Bridge. (Closed)

Created:
7 years, 11 months ago by benm (inactive)
Modified:
7 years, 11 months ago
Reviewers:
joth, acleung1
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, sgurun-gerrit only
Visibility:
Public.

Description

[Android] Fix leak in Java Bridge. First draft at moving the strong reference native side into a weak reference and maintaining the strong reference on the java side. Android only change, android bots green. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176079

Patch Set 1 #

Total comments: 16

Patch Set 2 : Comments. #

Total comments: 4

Patch Set 3 : Add set to keep objects alive until page navigation. #

Total comments: 7

Patch Set 4 : joth comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -23 lines) Patch
M content/browser/renderer_host/java/java_bound_object.h View 1 3 chunks +8 lines, -7 lines 0 comments Download
M content/browser/renderer_host/java/java_bound_object.cc View 1 5 chunks +20 lines, -9 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 7 chunks +36 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
benm (inactive)
first shot ... ptal
7 years, 11 months ago (2013-01-07 18:27:18 UTC) #1
benm (inactive)
+alan ptal
7 years, 11 months ago (2013-01-07 19:30:31 UTC) #2
joth
seems reasonable. Main thing this will need is plenty of commenting :-) https://codereview.chromium.org/11802002/diff/1/content/browser/renderer_host/java/java_bound_object.cc File content/browser/renderer_host/java/java_bound_object.cc ...
7 years, 11 months ago (2013-01-07 19:32:41 UTC) #3
benm (inactive)
thanks joth, fixed all but one comment, that one's a bit hairy I think :/ ...
7 years, 11 months ago (2013-01-08 14:43:04 UTC) #4
joth
lgtm - we should probably add a Set<Object> as a followup. (if not immediately, open ...
7 years, 11 months ago (2013-01-09 00:28:22 UTC) #5
benm (inactive)
thanks joth! https://codereview.chromium.org/11802002/diff/1/content/browser/renderer_host/java/java_bound_object.cc File content/browser/renderer_host/java/java_bound_object.cc (right): https://codereview.chromium.org/11802002/diff/1/content/browser/renderer_host/java/java_bound_object.cc#newcode591 content/browser/renderer_host/java/java_bound_object.cc:591: result.l = JavaBoundObject::GetJavaObject(object); Happy to add this ...
7 years, 11 months ago (2013-01-09 11:17:00 UTC) #6
benm (inactive)
https://codereview.chromium.org/11802002/diff/1/content/browser/renderer_host/java/java_bound_object.cc File content/browser/renderer_host/java/java_bound_object.cc (right): https://codereview.chromium.org/11802002/diff/1/content/browser/renderer_host/java/java_bound_object.cc#newcode591 content/browser/renderer_host/java/java_bound_object.cc:591: result.l = JavaBoundObject::GetJavaObject(object); For 3, I guess we could ...
7 years, 11 months ago (2013-01-09 14:46:13 UTC) #7
joth
ace. lgtm. I think my remaining comments amount to TODO/doc/bug updates rather than code changes. ...
7 years, 11 months ago (2013-01-09 20:53:22 UTC) #8
benm (inactive)
thanks joth! I filed https://code.google.com/p/chromium/issues/detail?id=169228 to track moveing the set native side and no functional ...
7 years, 11 months ago (2013-01-10 11:44:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/11802002/19004
7 years, 11 months ago (2013-01-10 12:45:57 UTC) #10
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 14:36:32 UTC) #11
Message was sent while issue was closed.
Change committed as 176079

Powered by Google App Engine
This is Rietveld 408576698