Index: chrome/browser/ui/webui/print_preview/print_preview_distiller.cc |
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc b/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc |
index 8bc95a9398257b5ae1bf201f9e54f12efadbd7f1..85c295393b474ffddc8593d2beb77864fd909178 100644 |
--- a/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc |
+++ b/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc |
@@ -257,14 +257,14 @@ void PrintPreviewDistiller::CreateDestinationWebContents( |
} |
PrintPreviewDistiller::~PrintPreviewDistiller() { |
- if (web_contents_) { |
- printing::PrintPreviewDialogController* dialog_controller = |
- printing::PrintPreviewDialogController::GetInstance(); |
- if (!dialog_controller) |
- return; |
+ DCHECK(web_contents_); |
- dialog_controller->RemoveProxyDialogForWebContents(web_contents_.get()); |
- } |
+ printing::PrintPreviewDialogController* dialog_controller = |
+ printing::PrintPreviewDialogController::GetInstance(); |
+ if (!dialog_controller) |
+ return; |
+ |
+ dialog_controller->RemoveProxyDialogForWebContents(web_contents_.get()); |
} |
WebContents* PrintPreviewDistiller::CreateWebContents( |