Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: extensions/browser/app_window/app_window_contents.cc

Issue 1211003006: [Extensions OOPI] Update app window bindings for OOPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/app_window/app_window_contents.cc
diff --git a/extensions/browser/app_window/app_window_contents.cc b/extensions/browser/app_window/app_window_contents.cc
index 8d8c9aef955ecef33086ae65ad7b628f3f469bb8..e2e0e29959bf4c7e02c597322c40470e4d23477a 100644
--- a/extensions/browser/app_window/app_window_contents.cc
+++ b/extensions/browser/app_window/app_window_contents.cc
@@ -44,12 +44,12 @@ void AppWindowContentsImpl::LoadContents(int32 creator_process_id) {
// RVH from loading anything until the background page has had a chance to
// do any initialization it wants. If it's a different process, the new RVH
// shouldn't communicate with the background page anyway (e.g. sandboxed).
- if (web_contents_->GetRenderViewHost()->GetProcess()->GetID() ==
+ if (web_contents_->GetMainFrame()->GetProcess()->GetID() ==
creator_process_id) {
- SuspendRenderViewHost(web_contents_->GetRenderViewHost());
+ SuspendRenderFrameHost(web_contents_->GetMainFrame());
} else {
VLOG(1) << "AppWindow created in new process ("
- << web_contents_->GetRenderViewHost()->GetProcess()->GetID()
+ << web_contents_->GetMainFrame()->GetProcess()->GetID()
<< ") != creator (" << creator_process_id << "). Routing disabled.";
}
@@ -107,14 +107,14 @@ void AppWindowContentsImpl::UpdateDraggableRegions(
host_->UpdateDraggableRegions(regions);
}
-void AppWindowContentsImpl::SuspendRenderViewHost(
- content::RenderViewHost* rvh) {
- DCHECK(rvh);
+void AppWindowContentsImpl::SuspendRenderFrameHost(
+ content::RenderFrameHost* rfh) {
+ DCHECK(rfh);
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute,
base::Unretained(content::ResourceDispatcherHost::Get()),
- rvh->GetProcess()->GetID(), rvh->GetRoutingID()));
+ rfh->GetProcess()->GetID(), rfh->GetRoutingID()));
}
} // namespace extensions
« no previous file with comments | « extensions/browser/app_window/app_window_contents.h ('k') | extensions/browser/app_window/app_window_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698