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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 22300003: Move broker creation out of PepperHelperImpl to PPB_Broker_Impl in the effort to eliminate PepperHe… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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: content/browser/web_contents/web_contents_impl.cc
===================================================================
--- content/browser/web_contents/web_contents_impl.cc (revision 215720)
+++ content/browser/web_contents/web_contents_impl.cc (working copy)
@@ -2485,29 +2485,26 @@
}
void WebContentsImpl::OnRequestPpapiBrokerPermission(
- int request_id,
+ int routing_id,
const GURL& url,
const base::FilePath& plugin_path) {
if (!delegate_) {
- OnPpapiBrokerPermissionResult(request_id, false);
+ OnPpapiBrokerPermissionResult(routing_id, false);
return;
}
if (!delegate_->RequestPpapiBrokerPermission(
this, url, plugin_path,
base::Bind(&WebContentsImpl::OnPpapiBrokerPermissionResult,
- base::Unretained(this), request_id))) {
+ base::Unretained(this), routing_id))) {
NOTIMPLEMENTED();
- OnPpapiBrokerPermissionResult(request_id, false);
+ OnPpapiBrokerPermissionResult(routing_id, false);
}
}
-void WebContentsImpl::OnPpapiBrokerPermissionResult(int request_id,
+void WebContentsImpl::OnPpapiBrokerPermissionResult(int routing_id,
bool result) {
- RenderViewHostImpl* rvh = GetRenderViewHostImpl();
- rvh->Send(new ViewMsg_PpapiBrokerPermissionResult(rvh->GetRoutingID(),
- request_id,
- result));
+ Send(new ViewMsg_PpapiBrokerPermissionResult(routing_id, result));
}
void WebContentsImpl::OnBrowserPluginMessage(const IPC::Message& message) {

Powered by Google App Engine
This is Rietveld 408576698