Chromium Code Reviews| 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(), |
|
nasko
2013/12/05 22:43:45
Similar to the other case, this will act on the ma
jam
2013/12/05 23:14:07
same as other comment, this is only done for top l
|
| GURL(), pdf_plugin); |
| } |