Index: extensions/browser/process_manager.cc |
diff --git a/extensions/browser/process_manager.cc b/extensions/browser/process_manager.cc |
index 47f7b191e004da8dccf2a6179c9a17a73471752f..1ecbd6e86d427470ddecd5657ff7b516cee611aa 100644 |
--- a/extensions/browser/process_manager.cc |
+++ b/extensions/browser/process_manager.cc |
@@ -805,7 +805,7 @@ void ProcessManager::CloseLazyBackgroundPageNow(const std::string& extension_id, |
} |
} |
for (content::RenderFrameHost* frame : frames_to_close) { |
- frame->GetRenderViewHost()->ClosePage(); |
+ content::WebContents::FromRenderFrameHost(frame)->ClosePage(); |
// RenderViewHost::ClosePage() may result in calling |
Charlie Reis
2015/04/21 17:28:09
nit: Update comment.
nasko
2015/04/29 17:09:27
Done.
|
// UnregisterRenderViewHost() asynchronously and may cause race conditions |
// when the background page is reloaded. |