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

Issue 329683002: Improvements in --debug-print switch implementation. (Closed)

Created:
6 years, 6 months ago by Vitaly Buka (NO REVIEWS)
Modified:
6 years, 6 months ago
Reviewers:
Lei Zhang, Noam Samuel
CC:
chromium-reviews
Visibility:
Public.

Description

Improvements in --debug-print switch implementation. * Renamed print_settings_initializer.* into print_settings_conversion.* * Dump on FILE thread. * Added PrintSettingsToJobSettingsDebug to dump PrintSettings. * Added PrintedDocument::CreateDebugDumpPath for consistent dump file naming. * Dump PDFs received from renderer process. * Moved GetCustomMarginsFromJobSettings into print_settings_conversion.cc. * Moved Parsing PageRanges into print_settings_conversion.* BUG=379961 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276716

Patch Set 1 : Wed 06/11/2014 0:39:46.66 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Wed 06/11/2014 10:41:42.83 #

Total comments: 14

Patch Set 5 : Wed 06/11/2014 14:29:57.35 #

Total comments: 4

Patch Set 6 : Wed 06/11/2014 15:21:39.87 #

Patch Set 7 : Thu 06/12/2014 2:53:06.07 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -351 lines) Patch
M chrome/browser/printing/print_job.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/printing/print_job_worker.cc View 2 chunks +9 lines, -29 lines 0 comments Download
M chrome/browser/printing/print_view_manager_base.cc View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M printing/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M printing/page_size_margins.h View 2 chunks +0 lines, -7 lines 0 comments Download
D printing/page_size_margins.cc View 1 chunk +0 lines, -29 lines 0 comments Download
M printing/print_settings.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A + printing/print_settings_conversion.h View 1 2 chunks +9 lines, -15 lines 0 comments Download
A + printing/print_settings_conversion.cc View 1 2 3 4 5 6 4 chunks +130 lines, -6 lines 0 comments Download
D printing/print_settings_initializer.h View 1 chunk +0 lines, -37 lines 0 comments Download
D printing/print_settings_initializer.cc View 1 2 3 4 5 6 1 chunk +0 lines, -125 lines 0 comments Download
M printing/printed_document.h View 1 2 3 4 5 6 7 chunks +24 lines, -13 lines 0 comments Download
M printing/printed_document.cc View 1 2 3 4 5 6 6 chunks +104 lines, -51 lines 0 comments Download
M printing/printing.gyp View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M printing/printing_context.h View 1 chunk +1 line, -2 lines 0 comments Download
M printing/printing_context.cc View 1 2 3 4 5 6 3 chunks +6 lines, -8 lines 0 comments Download
M printing/printing_context_win.cc View 1 2 3 4 5 3 chunks +5 lines, -21 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Vitaly Buka (NO REVIEWS)
6 years, 6 months ago (2014-06-11 05:19:00 UTC) #1
Noam Samuel
lgtm https://codereview.chromium.org/329683002/diff/160001/chrome/browser/printing/print_view_manager_base.cc File chrome/browser/printing/print_view_manager_base.cc (right): https://codereview.chromium.org/329683002/diff/160001/chrome/browser/printing/print_view_manager_base.cc#newcode257 chrome/browser/printing/print_view_manager_base.cc:257: } Does this only dump PDFS on Windows? ...
6 years, 6 months ago (2014-06-11 18:35:23 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/329683002/diff/160001/chrome/browser/printing/print_view_manager_base.cc File chrome/browser/printing/print_view_manager_base.cc (right): https://codereview.chromium.org/329683002/diff/160001/chrome/browser/printing/print_view_manager_base.cc#newcode256 chrome/browser/printing/print_view_manager_base.cc:256: base::Bind(&WriteBytesOnFileThread, debug_dump_path, bytes)); You can probably Bind() to ...
6 years, 6 months ago (2014-06-11 20:03:06 UTC) #3
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/329683002/diff/160001/chrome/browser/printing/print_view_manager_base.cc File chrome/browser/printing/print_view_manager_base.cc (right): https://codereview.chromium.org/329683002/diff/160001/chrome/browser/printing/print_view_manager_base.cc#newcode256 chrome/browser/printing/print_view_manager_base.cc:256: base::Bind(&WriteBytesOnFileThread, debug_dump_path, bytes)); On 2014/06/11 20:03:05, Lei Zhang wrote: ...
6 years, 6 months ago (2014-06-11 21:32:58 UTC) #4
Vitaly Buka (NO REVIEWS)
Moved more dumping code into printed_document.cc. Please take a look.
6 years, 6 months ago (2014-06-11 21:33:44 UTC) #5
Lei Zhang
still lgtm https://codereview.chromium.org/329683002/diff/200001/chrome/browser/printing/print_job.cc File chrome/browser/printing/print_job.cc (right): https://codereview.chromium.org/329683002/diff/200001/chrome/browser/printing/print_job.cc#newcode77 chrome/browser/printing/print_job.cc:77: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); Can you use BrowserThread::GetBlockingPool() instead? https://codereview.chromium.org/329683002/diff/200001/printing/printed_document.h ...
6 years, 6 months ago (2014-06-11 21:43:42 UTC) #6
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/329683002/diff/200001/chrome/browser/printing/print_job.cc File chrome/browser/printing/print_job.cc (right): https://codereview.chromium.org/329683002/diff/200001/chrome/browser/printing/print_job.cc#newcode77 chrome/browser/printing/print_job.cc:77: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); On 2014/06/11 21:43:42, Lei Zhang wrote: > Can ...
6 years, 6 months ago (2014-06-11 22:22:58 UTC) #7
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-11 22:23:05 UTC) #8
Vitaly Buka (NO REVIEWS)
The CQ bit was unchecked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-11 22:23:19 UTC) #9
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-11 22:26:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/329683002/240001
6 years, 6 months ago (2014-06-11 22:27:35 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 23:02:58 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 23:04:41 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/160433) ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/21940) mac_chromium_rel ...
6 years, 6 months ago (2014-06-11 23:04:42 UTC) #14
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 00:15:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/329683002/260001
6 years, 6 months ago (2014-06-12 00:17:18 UTC) #16
Vitaly Buka (NO REVIEWS)
The CQ bit was unchecked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 00:44:35 UTC) #17
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 00:45:55 UTC) #18
Vitaly Buka (NO REVIEWS)
The CQ bit was unchecked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 00:46:01 UTC) #19
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 00:50:44 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/329683002/260001
6 years, 6 months ago (2014-06-12 00:51:54 UTC) #21
Vitaly Buka (NO REVIEWS)
The CQ bit was unchecked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 07:14:28 UTC) #22
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 08:10:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/329683002/320001
6 years, 6 months ago (2014-06-12 08:13:14 UTC) #24
Vitaly Buka (NO REVIEWS)
The CQ bit was unchecked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 09:30:44 UTC) #25
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 09:54:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/329683002/380001
6 years, 6 months ago (2014-06-12 09:56:03 UTC) #27
Vitaly Buka (NO REVIEWS)
The CQ bit was unchecked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 16:50:21 UTC) #28
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 6 months ago (2014-06-12 16:50:28 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/329683002/380001
6 years, 6 months ago (2014-06-12 16:51:36 UTC) #30
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 16:57:05 UTC) #31
Message was sent while issue was closed.
Change committed as 276716

Powered by Google App Engine
This is Rietveld 408576698