| Index: chrome/browser/printing/print_preview_dialog_controller.cc
|
| diff --git a/chrome/browser/printing/print_preview_dialog_controller.cc b/chrome/browser/printing/print_preview_dialog_controller.cc
|
| index 6d91353345ed72778feaa3e7c48a3efc2f73a490..5d7b185c6a6f1a9265494e49046b0729cbd0a861 100644
|
| --- a/chrome/browser/printing/print_preview_dialog_controller.cc
|
| +++ b/chrome/browser/printing/print_preview_dialog_controller.cc
|
| @@ -185,19 +185,11 @@ WebContents* PrintPreviewDialogController::GetOrCreatePreviewDialog(
|
| return preview_dialog;
|
| }
|
|
|
| - // We should only create a dialog if the initiator has not been proxied.
|
| - if (GetProxyDialogTarget(initiator) == initiator)
|
| - return CreatePrintPreviewDialog(initiator);
|
| -
|
| return nullptr;
|
| }
|
|
|
| WebContents* PrintPreviewDialogController::GetPrintPreviewForContents(
|
| WebContents* contents) const {
|
| - // If this WebContents relies on another for its preview dialog, we
|
| - // need to act as if we are looking for the proxied content's dialog.
|
| - contents = GetProxyDialogTarget(contents);
|
| -
|
| // |preview_dialog_map_| is keyed by the preview dialog, so if find()
|
| // succeeds, then |contents| is the preview dialog.
|
| PrintPreviewDialogMap::const_iterator it = preview_dialog_map_.find(contents);
|
| @@ -395,24 +387,6 @@ WebContents* PrintPreviewDialogController::CreatePrintPreviewDialog(
|
| return preview_dialog;
|
| }
|
|
|
| -void PrintPreviewDialogController::AddProxyDialogForWebContents(
|
| - WebContents* source,
|
| - WebContents* target) {
|
| - proxied_dialog_map_[source] = target;
|
| -}
|
| -
|
| -void PrintPreviewDialogController::RemoveProxyDialogForWebContents(
|
| - WebContents* source) {
|
| - proxied_dialog_map_.erase(source);
|
| -}
|
| -
|
| -WebContents* PrintPreviewDialogController::GetProxyDialogTarget(
|
| - WebContents* source) const {
|
| - PrintPreviewDialogMap::const_iterator proxied =
|
| - proxied_dialog_map_.find(source);
|
| - return proxied == proxied_dialog_map_.end() ? source : proxied->second;
|
| -}
|
| -
|
| void PrintPreviewDialogController::SaveInitiatorTitle(
|
| WebContents* preview_dialog) {
|
| WebContents* initiator = GetInitiator(preview_dialog);
|
|
|