REVIEW: add render process lifecycle observer only once

This commit is contained in:
deepak1556 2017-12-15 23:07:44 +05:30 committed by Cheng Zhao
parent ebb0e46380
commit 69bd44edbb

View file

@ -235,9 +235,7 @@ void AtomBrowserClient::OverrideSiteInstanceForNavigation(
// Remember the original web contents for the pending renderer process.
auto pending_process = (*new_instance)->GetProcess();
pending_processes_[pending_process->GetID()] =
content::WebContents::FromRenderFrameHost(render_frame_host);;
// Clear the entry in map when process ends.
pending_process->AddObserver(this);
content::WebContents::FromRenderFrameHost(render_frame_host);
}
void AtomBrowserClient::AppendExtraCommandLineSwitches(