Fix releasing the wrong renderer view.

This commit is contained in:
Cheng Zhao 2014-04-25 12:40:04 +08:00
parent 4135040449
commit e70d195cde
3 changed files with 5 additions and 5 deletions

View file

@ -23,10 +23,10 @@ WebContents::WebContents(content::WebContents* web_contents)
WebContents::~WebContents() {
}
void WebContents::RenderViewDeleted(content::RenderViewHost*) {
void WebContents::RenderViewDeleted(content::RenderViewHost* render_view_host) {
base::ListValue args;
args.AppendInteger(GetProcessID());
args.AppendInteger(GetRoutingID());
args.AppendInteger(render_view_host->GetProcess()->GetID());
args.AppendInteger(render_view_host->GetRoutingID());
Emit("render-view-deleted", args);
}