Pending renderer process no longer has render view attached

This commit is contained in:
Cheng Zhao 2016-03-09 21:34:51 +09:00
parent 6de9c4332f
commit bfc6d77bb3
3 changed files with 33 additions and 7 deletions

View file

@ -203,13 +203,8 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
// Certain render process will be created with no associated render view,
// for example: ServiceWorker.
auto rvh = content::RenderViewHost::FromID(process_id, kDefaultRoutingID);
if (!rvh)
return;
// Get the WebContents of the render process.
content::WebContents* web_contents =
content::WebContents::FromRenderViewHost(rvh);
WebContentsPreferences::GetWebContentsFromProcessID(process_id);
if (!web_contents)
return;