Index: chrome/browser/ui/webui/print_preview_handler.cc |
diff --git a/chrome/browser/ui/webui/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview_handler.cc |
index 4ee78d83955ab56699878be10c49f4b8d13551bd..91bb0838af5c5e9f69c7a16f701b0ed2ebd2ff17 100644 |
--- a/chrome/browser/ui/webui/print_preview_handler.cc |
+++ b/chrome/browser/ui/webui/print_preview_handler.cc |
@@ -275,8 +275,10 @@ void PrintPreviewHandler::HandleGetPrinters(const ListValue*) { |
void PrintPreviewHandler::HandleGetPreview(const ListValue* args) { |
TabContents* initiator_tab = GetInitiatorTab(); |
- if (!initiator_tab) |
+ if (!initiator_tab) { |
+ web_ui_->CallJavascriptFunction("printPreviewFailed"); |
return; |
+ } |
scoped_ptr<DictionaryValue> settings(GetSettingsDictionary(args)); |
if (!settings.get()) |
return; |