| Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| index 558af3b036a9f4d0833d3c01038d767f8064bab9..3af956229def3b91ef828cc303cf3f21c40cda11 100644
|
| --- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| @@ -749,12 +749,6 @@ void PrintPreviewHandler::HandlePrint(const base::ListValue* args) {
|
| UMA_HISTOGRAM_COUNTS("PrintPreview.RegeneratePreviewRequest.BeforePrint",
|
| regenerate_preview_request_count_);
|
|
|
| - WebContents* initiator = GetInitiator();
|
| - if (initiator) {
|
| - RenderViewHost* rvh = initiator->GetRenderViewHost();
|
| - rvh->Send(new PrintMsg_ResetScriptedPrintCount(rvh->GetRoutingID()));
|
| - }
|
| -
|
| scoped_ptr<base::DictionaryValue> settings(GetSettingsDictionary(args));
|
| if (!settings.get())
|
| return;
|
| @@ -859,6 +853,7 @@ void PrintPreviewHandler::HandlePrint(const base::ListValue* args) {
|
| // printing has finished. Then the dialog closes and PrintPreviewDone() gets
|
| // called. In the case below, since the preview dialog will be hidden and
|
| // not closed, we need to make this call.
|
| + WebContents* initiator = GetInitiator();
|
| if (initiator) {
|
| printing::PrintViewManager* print_view_manager =
|
| printing::PrintViewManager::FromWebContents(initiator);
|
|
|