Index: chrome/browser/ui/webui/print_preview_handler.cc |
diff --git a/chrome/browser/ui/webui/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview_handler.cc |
index f807a6c50af0f31a25f8bd538cd67bcb7f90f78b..afaddc5687b0c16018de0f41d562aa4b226214a9 100644 |
--- a/chrome/browser/ui/webui/print_preview_handler.cc |
+++ b/chrome/browser/ui/webui/print_preview_handler.cc |
@@ -560,7 +560,7 @@ void PrintPreviewHandler::HandlePrint(const ListValue* args) { |
// The PDF being printed contains only the pages that the user selected, |
// so ignore the page range and print all pages. |
settings->Remove(printing::kSettingPageRange, NULL); |
- RenderViewHost* rvh = web_ui_->GetRenderViewHost(); |
+ RenderViewHost* rvh = web_ui_->tab_contents()->render_view_host(); |
rvh->Send(new PrintMsg_PrintForPrintPreview(rvh->routing_id(), *settings)); |
} |
} |