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

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

Issue 8515017: Print Preview: Properly handle window.print(). (Closed)
Patch Set: fail instead of crash when 2 views both do window.print() Created 9 years, 1 month 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.h
diff --git a/chrome/browser/printing/print_preview_tab_controller.h b/chrome/browser/printing/print_preview_tab_controller.h
index abd5056af98f04a144c4b6e0b384033cc0d31c1c..af23ca7ce8474dbb3dd37ec255a5342367976117 100644
--- a/chrome/browser/printing/print_preview_tab_controller.h
+++ b/chrome/browser/printing/print_preview_tab_controller.h
@@ -106,7 +106,8 @@ class PrintPreviewTabController
void RemoveObservers(TabContentsWrapper* tab);
// Removes tabs when they close/crash/navigate.
- void RemoveInitiatorTab(TabContentsWrapper* initiator_tab);
+ void RemoveInitiatorTab(TabContentsWrapper* initiator_tab,
+ bool is_navigation);
void RemovePreviewTab(TabContentsWrapper* preview_tab);
// Mapping between print preview tab and the corresponding initiator tab.
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/printing/print_preview_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698