Fix using an null dictionary.

This commit is contained in:
Cheng Zhao 2014-04-24 11:25:06 +08:00
parent a365e0b032
commit e8bf798b52

View file

@ -355,8 +355,8 @@ bool Window::IsCrashed() {
}
mate::Dictionary Window::GetDevTools(v8::Isolate* isolate) {
mate::Dictionary dict(mate::Dictionary::CreateEmpty(isolate));
content::WebContents* web_contents = window_->GetDevToolsWebContents();
mate::Dictionary dict(isolate);
dict.Set("processId", web_contents->GetRenderProcessHost()->GetID());
dict.Set("routingId", web_contents->GetRoutingID());
return dict;