REVIEW: add render process lifecycle observer only once
This commit is contained in:
parent
ebb0e46380
commit
69bd44edbb
1 changed files with 1 additions and 3 deletions
|
@ -235,9 +235,7 @@ void AtomBrowserClient::OverrideSiteInstanceForNavigation(
|
||||||
// Remember the original web contents for the pending renderer process.
|
// Remember the original web contents for the pending renderer process.
|
||||||
auto pending_process = (*new_instance)->GetProcess();
|
auto pending_process = (*new_instance)->GetProcess();
|
||||||
pending_processes_[pending_process->GetID()] =
|
pending_processes_[pending_process->GetID()] =
|
||||||
content::WebContents::FromRenderFrameHost(render_frame_host);;
|
content::WebContents::FromRenderFrameHost(render_frame_host);
|
||||||
// Clear the entry in map when process ends.
|
|
||||||
pending_process->AddObserver(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue