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

Issue 8929005: Fix a bug where the JavaBridgeDispatcherHost is prematurely deleted (Closed)

Created:
9 years ago by Steve Block
Modified:
9 years ago
Reviewers:
joth, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Fix a bug where the JavaBridgeDispatcherHost is prematurely deleted JavaBridgeDispatcherHost must be ref-counted because it is used with base::Bind. http://codereview.chromium.org/8834013 changed JavaBridgeDispatcherHost to also inherit from RenderViewHostObserver. The base implementation of RenderViewHostObserver::RenderViewHostDestroyed() deletes the object. This is unwanted in this class, so we provide an empy implementation of the method. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114218

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M content/browser/renderer_host/java/java_bridge_dispatcher_host.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Steve Block
9 years ago (2011-12-13 11:22:00 UTC) #1
joth
lgtm other than a couple nits. http://codereview.chromium.org/8929005/diff/1/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc File content/browser/renderer_host/java/java_bridge_dispatcher_host.cc (right): http://codereview.chromium.org/8929005/diff/1/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc#newcode51 content/browser/renderer_host/java/java_bridge_dispatcher_host.cc:51: Send(new JavaBridgeMsg_Init(routing_id())); note ...
9 years ago (2011-12-13 11:50:43 UTC) #2
Steve Block
http://codereview.chromium.org/8929005/diff/1/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc File content/browser/renderer_host/java/java_bridge_dispatcher_host.cc (right): http://codereview.chromium.org/8929005/diff/1/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc#newcode51 content/browser/renderer_host/java/java_bridge_dispatcher_host.cc:51: Send(new JavaBridgeMsg_Init(routing_id())); I don't think this is a problem, ...
9 years ago (2011-12-13 12:40:20 UTC) #3
joth
lgtm
9 years ago (2011-12-13 12:45:03 UTC) #4
jam
lgtm
9 years ago (2011-12-13 14:50:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/8929005/4002
9 years ago (2011-12-13 14:53:21 UTC) #6
commit-bot: I haz the power
9 years ago (2011-12-13 16:16:30 UTC) #7
Change committed as 114218

Powered by Google App Engine
This is Rietveld 408576698