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

Issue 6523040: Added support to the Windows cloud print proxy to print XPS documents directl... (Closed)

Created:
9 years, 10 months ago by sanjeevr
Modified:
9 years, 7 months ago
Reviewers:
Scott Byer
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Added support to the Windows cloud print proxy to print XPS documents directly without any conversion (only works on Windows 7). The proxy uses the Accept: header to specify what data types it can accept. BUG=None. TEST=When the cloud print service supports this, submitting an XPS document should go through to the Win 7 proxy without any conversions. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75286

Patch Set 1 #

Patch Set 2 : Fixed lint errors #

Patch Set 3 : Fixed cleanup code #

Total comments: 6

Patch Set 4 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -66 lines) Patch
M chrome/service/cloud_print/cloud_print_proxy_backend.cc View 3 chunks +19 lines, -8 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.h View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 4 chunks +16 lines, -8 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/service/cloud_print/job_status_updater.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/service/cloud_print/print_system.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/print_system_cups.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/print_system_win.cc View 1 2 8 chunks +157 lines, -38 lines 0 comments Download
M chrome/service/cloud_print/printer_job_handler.cc View 6 chunks +22 lines, -6 lines 0 comments Download
M printing/backend/win_helper.h View 2 chunks +25 lines, -0 lines 0 comments Download
M printing/backend/win_helper.cc View 3 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sanjeevr
9 years, 10 months ago (2011-02-15 23:32:55 UTC) #1
Scott Byer
http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/print_system_cups.cc File chrome/service/cloud_print/print_system_cups.cc (right): http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/print_system_cups.cc#newcode651 chrome/service/cloud_print/print_system_cups.cc:651: // TODO(sanjeevr): Determine this dynamically. A bug + link ...
9 years, 10 months ago (2011-02-17 00:31:01 UTC) #2
sanjeevr
http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/print_system_cups.cc File chrome/service/cloud_print/print_system_cups.cc (right): http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/print_system_cups.cc#newcode651 chrome/service/cloud_print/print_system_cups.cc:651: // TODO(sanjeevr): Determine this dynamically. On 2011/02/17 00:31:02, Scott ...
9 years, 10 months ago (2011-02-17 00:53:52 UTC) #3
Scott Byer
9 years, 10 months ago (2011-02-17 17:17:10 UTC) #4
LGTM

On 2011/02/17 00:53:52, sanjeevr wrote:
>
http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/p...
> File chrome/service/cloud_print/print_system_cups.cc (right):
> 
>
http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/p...
> chrome/service/cloud_print/print_system_cups.cc:651: // TODO(sanjeevr):
> Determine this dynamically.
> On 2011/02/17 00:31:02, Scott Byer wrote:
> > A bug + link for the TODO?
> 
> Done.
> 
>
http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/p...
> File chrome/service/cloud_print/print_system_win.cc (right):
> 
>
http://codereview.chromium.org/6523040/diff/7003/chrome/service/cloud_print/p...
> chrome/service/cloud_print/print_system_win.cc:584:
> file_util::ReadFileToString(print_data_file_path, &document_data);
> On 2011/02/17 00:31:02, Scott Byer wrote:
> > Does this function need to check that it's being called on the right thread
> > since it's got file I/O going on?
> 
> This is the service process and not the browser process. We don't have the
same
> kind of restrictions about which thread to do file I/O on since there is no
UI.
> 
>
http://codereview.chromium.org/6523040/diff/7003/printing/backend/win_helper.cc
> File printing/backend/win_helper.cc (right):
> 
>
http://codereview.chromium.org/6523040/diff/7003/printing/backend/win_helper....
> printing/backend/win_helper.cc:223: static bool initialized = InitImpl();
> On 2011/02/17 00:31:02, Scott Byer wrote:
> > This isn't thread safe, really. Use LazyInstance if it really needs to be.
> 
> Yes, I know this isn't thread-safe. But it does not need to be since the worst
> thing that will happen is that the initialization will happen twice (the
static
> bool check is just an optimization anyway). This is the same pattern we follow
> in XPSModule::Init.

Powered by Google App Engine
This is Rietveld 408576698