| Index: chrome/renderer/print_web_view_helper.cc
|
| ===================================================================
|
| --- chrome/renderer/print_web_view_helper.cc (revision 95179)
|
| +++ chrome/renderer/print_web_view_helper.cc (working copy)
|
| @@ -507,7 +507,7 @@
|
| store_print_pages_params = false;
|
| int cookie = print_pages_params_->params.document_cookie;
|
| Send(new PrintHostMsg_PrintPreviewFailed(routing_id(), cookie));
|
| - print_preview_context_.Abort();
|
| + print_preview_context_.Failed();
|
| } else if (result == ABORT_PREVIEW) {
|
| DCHECK(is_preview_);
|
| store_print_pages_params = false;
|
| @@ -1054,6 +1054,12 @@
|
| ClearContext();
|
| }
|
|
|
| +void PrintWebViewHelper::PrintPreviewContext::Failed() {
|
| + DCHECK(IsBusy());
|
| + state_ = INITIALIZED;
|
| + ClearContext();
|
| +}
|
| +
|
| void PrintWebViewHelper::PrintPreviewContext::Abort() {
|
| state_ = UNINITIALIZED;
|
| ClearContext();
|
|
|