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

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

Issue 10829463: Print preview: Handle all tab navigations in PrintPreviewTabController instead of in two places. Ha… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months 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_message_handler.cc
===================================================================
--- chrome/browser/printing/print_preview_message_handler.cc (revision 152498)
+++ chrome/browser/printing/print_preview_message_handler.cc (working copy)
@@ -26,7 +26,6 @@
#include "printing/print_job_constants.h"
using content::BrowserThread;
-using content::NavigationController;
using content::WebContents;
namespace {
@@ -248,22 +247,4 @@
return handled;
}
-void PrintPreviewMessageHandler::NavigateToPendingEntry(
- const GURL& url,
- NavigationController::ReloadType reload_type) {
- TabContents* tab = tab_contents();
- TabContents* preview_tab = GetPrintPreviewTab();
- if (tab == preview_tab) {
- // Cloud print sign-in reloads the page.
Lei Zhang 2012/08/21 18:21:23 I don't think we do this anymore. Cloud print sign
Albert Bodenhamer 2012/08/21 18:28:55 The need for this actually went away quite a while
- DCHECK(PrintPreviewTabController::IsPrintPreviewURL(url));
- DCHECK_EQ(NavigationController::RELOAD, reload_type);
- return;
- }
- // If |tab| is navigating and it has a print preview tab, notify |tab| to
- // consider print preview done so it unfreezes the renderer in the case of
- // window.print().
- if (preview_tab)
- tab->print_view_manager()->PrintPreviewDone();
-}
-
} // namespace printing
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.h ('k') | chrome/browser/printing/print_preview_tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698