Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Issue 547203002: Delete temporarily dir for PDF to EMF conversion after all EMF files closed. (Closed)

Created:
6 years, 3 months ago by Vitaly Buka (NO REVIEWS)
Modified:
6 years, 3 months ago
Reviewers:
Lei Zhang, scottmg
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Delete temporarily dir for PDF to EMF conversion after EMF files closed. printing::Emf keeps files locked so base::ScopedTempDir can't delete them and leaks files. Failures or crashes still may leak files. I ignore them to have change simple enough for merging into beta. BUG=411681 NOTRY=true Committed: https://crrev.com/e12ae0b0a1e9d18c585e63c37b51be7cef404772 Cr-Commit-Position: refs/heads/master@{#293848}

Patch Set 1 #

Patch Set 2 : Sun Sep 7 01:54:33 PDT 2014 #

Patch Set 3 : Sun Sep 7 18:13:19 PDT 2014 #

Patch Set 4 : Mon Sep 8 11:44:50 PDT 2014 #

Total comments: 12

Patch Set 5 : Mon Sep 8 12:19:46 PDT 2014 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -32 lines) Patch
M chrome/browser/printing/pdf_to_emf_converter.h View 3 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 1 2 3 4 8 chunks +63 lines, -23 lines 0 comments Download
M chrome/browser/printing/print_view_manager_base.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager_base.cc View 1 2 3 4 2 chunks +9 lines, -6 lines 0 comments Download
M printing/emf_win.h View 1 chunk +3 lines, -0 lines 0 comments Download
M printing/emf_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
Vitaly Buka (NO REVIEWS)
6 years, 3 months ago (2014-09-07 09:11:17 UTC) #2
scottmg
It seems a bit odd to be deleting wildcard directories here. Is it not possible ...
6 years, 3 months ago (2014-09-08 18:18:35 UTC) #6
Vitaly Buka (NO REVIEWS)
On 2014/09/08 18:18:35, scottmg wrote: > It seems a bit odd to be deleting wildcard ...
6 years, 3 months ago (2014-09-08 18:26:15 UTC) #7
Vitaly Buka (NO REVIEWS)
On 2014/09/08 18:26:15, Vitaly Buka wrote: > On 2014/09/08 18:18:35, scottmg wrote: > > It ...
6 years, 3 months ago (2014-09-08 18:27:49 UTC) #8
scottmg
On 2014/09/08 18:26:15, Vitaly Buka wrote: > On 2014/09/08 18:18:35, scottmg wrote: > > It ...
6 years, 3 months ago (2014-09-08 18:29:48 UTC) #9
Vitaly Buka (NO REVIEWS)
On 2014/09/08 18:29:48, scottmg wrote: > On 2014/09/08 18:26:15, Vitaly Buka wrote: > > On ...
6 years, 3 months ago (2014-09-08 18:32:12 UTC) #10
Lei Zhang
How big are these files? Can we just let Windows Disk Cleanup delete these for ...
6 years, 3 months ago (2014-09-08 18:37:28 UTC) #11
scottmg
On 2014/09/08 18:37:28, Lei Zhang wrote: > How big are these files? Can we just ...
6 years, 3 months ago (2014-09-08 18:38:27 UTC) #12
scottmg
(Especially since as you say it's entirely going away soon anyway) On Mon, Sep 8, ...
6 years, 3 months ago (2014-09-08 18:38:58 UTC) #13
Vitaly Buka (NO REVIEWS)
On 2014/09/08 18:37:28, Lei Zhang wrote: > How big are these files? Can we just ...
6 years, 3 months ago (2014-09-08 18:43:02 UTC) #14
Vitaly Buka (NO REVIEWS)
On 2014/09/08 18:43:02, Vitaly Buka wrote: > On 2014/09/08 18:37:28, Lei Zhang wrote: > > ...
6 years, 3 months ago (2014-09-08 18:46:34 UTC) #15
scottmg
https://codereview.chromium.org/547203002/diff/120001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/547203002/diff/120001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode89 chrome/browser/printing/pdf_to_emf_converter.cc:89: pdf_file_.Flush(); I'm not sure why it was re-opened readonly ...
6 years, 3 months ago (2014-09-08 19:06:11 UTC) #16
scottmg
I think PrintViewManagerBase holds PrintJob holds the PrintDocument which holds the PrintedPage. But I don't ...
6 years, 3 months ago (2014-09-08 19:15:09 UTC) #17
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/547203002/diff/120001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/547203002/diff/120001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode89 chrome/browser/printing/pdf_to_emf_converter.cc:89: pdf_file_.Flush(); On 2014/09/08 19:06:11, scottmg wrote: > I'm not ...
6 years, 3 months ago (2014-09-08 19:19:58 UTC) #18
scottmg
ok, lgtm if Lei is happy.
6 years, 3 months ago (2014-09-08 19:25:01 UTC) #19
Lei Zhang
lgtm
6 years, 3 months ago (2014-09-08 19:59:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/547203002/140001
6 years, 3 months ago (2014-09-08 21:24:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/547203002/140001
6 years, 3 months ago (2014-09-09 04:29:35 UTC) #25
Vitaly Buka (NO REVIEWS)
Committed patchset #5 to pending queue manually as 1c0b573 (presubmit successful).
6 years, 3 months ago (2014-09-09 04:36:23 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:140001) as 1c0b5733cc0ee21518630a5778bb0d28baa27722
6 years, 3 months ago (2014-09-09 04:46:16 UTC) #27
Vitaly Buka (NO REVIEWS)
printing entire http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf wasting 1.5Gb, so maybe we should consider wildcard cleanup?
6 years, 3 months ago (2014-09-10 00:04:42 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:50:21 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e12ae0b0a1e9d18c585e63c37b51be7cef404772
Cr-Commit-Position: refs/heads/master@{#293848}

Powered by Google App Engine
This is Rietveld 408576698