Chromium Code Reviews| Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
| index 77af2c319ef74b84ccfb2a5ad9962968fff29f58..ac87f3bbfd512a2e870719ca6f121f24326c0cfc 100644 |
| --- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc |
| @@ -74,6 +74,7 @@ |
| #include "content/public/browser/navigation_entry.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" |
| #include "content/public/browser/web_ui.h" |
| #include "google_apis/gaia/oauth2_token_service.h" |
| @@ -921,7 +922,7 @@ void PrintPreviewHandler::HandlePrint(const base::ListValue* args) { |
| settings->SetInteger(printing::kPreviewInitiatorHostId, |
| initiator->GetRenderProcessHost()->GetID()); |
| settings->SetInteger(printing::kPreviewInitiatorRoutingId, |
| - initiator->GetRoutingID()); |
| + initiator->GetRenderViewHost()->GetRoutingID()); |
|
Lei Zhang
2016/11/24 17:18:26
Uh oh, this is wrong. I have a separate fix: https
|
| } |
| ClearInitiatorDetails(); |