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

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

Issue 7202012: Print Preview: Display a throbber when the user requests the system print (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Crash fix. Created 9 years, 6 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_tab_controller.cc
diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
index 0d94be172f689e541f0bf6fe1d5f13e7c51cd1d1..5a65d8ead92dfc1fb30c6929c72d4d6d0c3944a1 100644
--- a/chrome/browser/printing/print_preview_tab_controller.cc
+++ b/chrome/browser/printing/print_preview_tab_controller.cc
@@ -138,6 +138,11 @@ void PrintPreviewTabController::Observe(NotificationType type,
if (initiator_tab)
RemoveObservers(initiator_tab);
+ PrintPreviewUI* print_preview_ui =
+ static_cast<PrintPreviewUI*>(source_tab->web_ui());
+ if (print_preview_ui)
+ print_preview_ui->OnNavigation();
+
// Erase the map entry.
preview_tab_map_.erase(source_tab);
} else {
« no previous file with comments | « no previous file | chrome/browser/printing/print_view_manager.h » ('j') | chrome/browser/printing/print_view_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698