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

Issue 12666007: Don't leak ContentViewCores via ImeAdapter (Closed)

Created:
7 years, 9 months ago by joth
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, bulach, aurimas (slooooooooow)
Visibility:
Public.

Description

Don't leak ContentViewCores via ImeAdapter The existing strong ref from native to java forms a GC root which thwarts GC of ImeAdapter.java or any object referenced by it, which includes ContentViewCore by dint of ViewEmbedder subclass being a non-static inner class of CVC and hence binding it. This is problematic for WebView as it requires reliable finalizer based cleanup of CVC. BUG=b/7697692 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188584

Patch Set 1 #

Patch Set 2 : ws #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -25 lines) Patch
M content/browser/renderer_host/ime_adapter_android.h View 3 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/ime_adapter_android.cc View 1 3 chunks +11 lines, -9 lines 2 comments Download
M content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java View 1 chunk +20 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Kristian Monsen
lgtm https://codereview.chromium.org/12666007/diff/3001/content/browser/renderer_host/ime_adapter_android.cc File content/browser/renderer_host/ime_adapter_android.cc (right): https://codereview.chromium.org/12666007/diff/3001/content/browser/renderer_host/ime_adapter_android.cc#newcode181 content/browser/renderer_host/ime_adapter_android.cc:181: base::android::ScopedJavaLocalRef<jobject> obj = maybe slightly more expressive name ...
7 years, 9 months ago (2013-03-14 22:42:38 UTC) #1
joth
+benm I started adding tests for this too... https://codereview.chromium.org/12658010/ but they're not ready yet. Hitting ...
7 years, 9 months ago (2013-03-15 02:39:45 UTC) #2
benm (inactive)
lgtm LGTM +OWNERS in case anyone's awake and we can land :)
7 years, 9 months ago (2013-03-15 10:18:55 UTC) #3
bulach
lgtm, thanks for fixing it! (nit: commit message, s/ased/based/)
7 years, 9 months ago (2013-03-15 10:27:05 UTC) #4
joth
cc aurimas FYI. sending to CQ now.
7 years, 9 months ago (2013-03-15 17:38:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/12666007/3001
7 years, 9 months ago (2013-03-15 17:38:42 UTC) #6
commit-bot: I haz the power
Presubmit check for 12666007-3001 failed and returned exit status 1. INFO:root:Found 3 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-15 17:38:45 UTC) #7
no sievers
On 2013/03/15 17:38:45, I haz the power (commit-bot) wrote: > Presubmit check for 12666007-3001 failed ...
7 years, 9 months ago (2013-03-15 17:42:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/12666007/3001
7 years, 9 months ago (2013-03-15 22:06:36 UTC) #9
commit-bot: I haz the power
7 years, 9 months ago (2013-03-16 16:03:59 UTC) #10
Message was sent while issue was closed.
Change committed as 188584

Powered by Google App Engine
This is Rietveld 408576698