summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/web_contents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/web_contents.cc')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index 5c2fdb2..63e6689 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -589,15 +589,8 @@ void WebContents::SavePage(const std::wstring& main_file,
}
void WebContents::PrintPreview() {
- // We can't print interstitial page for now.
- if (showing_interstitial_page())
- return;
-
- // If we have a find bar it needs to hide as well.
- view_->HideFindBar(false);
-
- // We don't show the print preview for the beta, only the print dialog.
- printing_.ShowPrintDialog();
+ // We don't show the print preview yet, only the print dialog.
+ PrintNow();
}
bool WebContents::PrintNow() {
@@ -608,7 +601,7 @@ bool WebContents::PrintNow() {
// If we have a find bar it needs to hide as well.
view_->HideFindBar(false);
- return printing_.PrintNow();
+ return render_view_host()->PrintPages();
}
bool WebContents::IsActiveEntry(int32 page_id) {