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

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

Issue 7574002: Be able to print items that do window.print(); window.close() (airline tix e.g.) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Lei's comments. Created 9 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
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc
index a9462e9afc2aad8b90be41785540844cd2870ca5..17ac65f959356cc2b82dcd640341444c24167662 100644
--- a/chrome/browser/printing/print_preview_message_handler.cc
+++ b/chrome/browser/printing/print_preview_message_handler.cc
@@ -185,7 +185,7 @@ void PrintPreviewMessageHandler::OnPrintPreviewFailed(int document_cookie) {
TabContentsWrapper::GetCurrentWrapperForContents(print_preview_tab);
if (g_browser_process->background_printing_manager()->
- HasTabContents(wrapper)) {
+ HasPreviewTabContents(wrapper)) {
// Preview tab was hidden to serve the print request.
delete wrapper;
} else {

Powered by Google App Engine
This is Rietveld 408576698