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

Issue 2952043002: Print Preview: Create Save As PDF directory if it does not exist. (Closed)

Created:
3 years, 6 months ago by rbpotter
Modified:
3 years, 6 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Print Preview: Create Save As PDF directory if it does not exist. If the default Save As PDF directory (which is the same as the user's default downloads directory) does not exist, create it before opening the select file dialog. Otherwise, the select file dialog will open in the lowest level folder on the path that already exists. BUG=718527 Review-Url: https://codereview.chromium.org/2952043002 Cr-Commit-Position: refs/heads/master@{#481699} Committed: https://chromium.googlesource.com/chromium/src/+/dd822dd88fd5f1af99afb1ac3228e7bdad2ecc81

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -12 lines) Patch
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 chunks +29 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
rbpotter
3 years, 6 months ago (2017-06-22 01:17:46 UTC) #7
Lei Zhang
https://codereview.chromium.org/2952043002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/2952043002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode462 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:462: if (!base::DirectoryExists(path) && !path.empty()) Check !path.empty() first since that's ...
3 years, 6 months ago (2017-06-22 01:39:56 UTC) #8
Lei Zhang
I feel like the CL description needs to mention print preview somewhere for context.
3 years, 6 months ago (2017-06-22 01:41:39 UTC) #9
rbpotter
https://codereview.chromium.org/2952043002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/2952043002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode462 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:462: if (!base::DirectoryExists(path) && !path.empty()) On 2017/06/22 01:39:56, Lei Zhang ...
3 years, 6 months ago (2017-06-22 19:57:26 UTC) #11
Lei Zhang
lgtm
3 years, 6 months ago (2017-06-22 22:37:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2952043002/20001
3 years, 6 months ago (2017-06-22 22:50:07 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 22:53:40 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/dd822dd88fd5f1af99afb1ac3228...

Powered by Google App Engine
This is Rietveld 408576698