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

Unified Diff: chrome/browser/printing/print_preview_dialog_controller.cc

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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: chrome/browser/printing/print_preview_dialog_controller.cc
===================================================================
--- chrome/browser/printing/print_preview_dialog_controller.cc (revision 238847)
+++ chrome/browser/printing/print_preview_dialog_controller.cc (working copy)
@@ -34,6 +34,7 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/plugin_service.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
@@ -63,9 +64,9 @@
pdf_plugin_path, &pdf_plugin))
return;
- ChromePluginServiceFilter::GetInstance()->OverridePluginForTab(
+ ChromePluginServiceFilter::GetInstance()->OverridePluginForFrame(
preview_dialog->GetRenderProcessHost()->GetID(),
- preview_dialog->GetRenderViewHost()->GetRoutingID(),
+ preview_dialog->GetMainFrame()->GetRoutingID(),
GURL(), pdf_plugin);
}
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/browser/ui/pdf/pdf_unsupported_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698