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

Unified Diff: trunk/src/chrome/browser/printing/background_printing_manager.cc

Issue 21372006: Revert 212329 "Reland "Close web contents modal dialogs on conte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | trunk/src/chrome/browser/printing/print_preview_dialog_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/printing/background_printing_manager.cc
===================================================================
--- trunk/src/chrome/browser/printing/background_printing_manager.cc (revision 214772)
+++ trunk/src/chrome/browser/printing/background_printing_manager.cc (working copy)
@@ -63,15 +63,16 @@
rph_source);
}
- // Activate the initiator.
+ // Activate the initiator tab.
PrintPreviewDialogController* dialog_controller =
PrintPreviewDialogController::GetInstance();
if (!dialog_controller)
return;
- WebContents* initiator = dialog_controller->GetInitiator(preview_dialog);
- if (!initiator)
+ WebContents* initiator_tab =
+ dialog_controller->GetInitiatorTab(preview_dialog);
+ if (!initiator_tab)
return;
- initiator->GetDelegate()->ActivateContents(initiator);
+ initiator_tab->GetDelegate()->ActivateContents(initiator_tab);
}
void BackgroundPrintingManager::Observe(
« no previous file with comments | « no previous file | trunk/src/chrome/browser/printing/print_preview_dialog_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698