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

Issue 3051006: Used the service utility process host to render PDFs in a sandbox for the Win... (Closed)

Created:
10 years, 5 months ago by sanjeevr
Modified:
9 years, 7 months ago
Reviewers:
gene, M-A Ruel
CC:
chromium-reviews
Visibility:
Public.

Description

Used the service utility process host to render PDFs in a sandbox for the Windows cloud print proxy. Also made the print spooling asynchronous. BUG=None TEST=Test cloud print proxy on all supported platforms. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53238

Patch Set 1 #

Patch Set 2 : Lint error fixes #

Total comments: 6

Patch Set 3 : Code review changes #

Total comments: 8

Patch Set 4 : Linux build fix #

Patch Set 5 : Code review changes #

Patch Set 6 : CUPS tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -170 lines) Patch
M chrome/service/cloud_print/print_system.h View 1 2 3 4 3 chunks +46 lines, -29 lines 0 comments Download
M chrome/service/cloud_print/print_system_cups.cc View 1 2 3 4 5 7 chunks +85 lines, -50 lines 0 comments Download
M chrome/service/cloud_print/print_system_win.cc View 1 2 3 4 7 chunks +182 lines, -59 lines 0 comments Download
M chrome/service/cloud_print/printer_job_handler.h View 1 2 3 4 5 chunks +18 lines, -6 lines 0 comments Download
M chrome/service/cloud_print/printer_job_handler.cc View 3 chunks +38 lines, -26 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sanjeevr
10 years, 5 months ago (2010-07-20 18:38:53 UTC) #1
gene
http://codereview.chromium.org/3051006/diff/7001/8001 File chrome/service/cloud_print/print_system.h (right): http://codereview.chromium.org/3051006/diff/7001/8001#newcode149 chrome/service/cloud_print/print_system.h:149: virtual bool Spool(const std::string& print_ticket, If this interface does ...
10 years, 5 months ago (2010-07-20 18:54:11 UTC) #2
sanjeevr
Made the changes. http://codereview.chromium.org/3051006/diff/7001/8001 File chrome/service/cloud_print/print_system.h (right): http://codereview.chromium.org/3051006/diff/7001/8001#newcode149 chrome/service/cloud_print/print_system.h:149: virtual bool Spool(const std::string& print_ticket, On ...
10 years, 5 months ago (2010-07-20 20:14:23 UTC) #3
M-A Ruel
only nits, lgtm to me. http://codereview.chromium.org/3051006/diff/3002/13001 File chrome/service/cloud_print/print_system.h (right): http://codereview.chromium.org/3051006/diff/3002/13001#newcode136 chrome/service/cloud_print/print_system.h:136: class JobSpooler : public ...
10 years, 5 months ago (2010-07-20 20:55:57 UTC) #4
sanjeevr
Made the changes. http://codereview.chromium.org/3051006/diff/3002/13001 File chrome/service/cloud_print/print_system.h (right): http://codereview.chromium.org/3051006/diff/3002/13001#newcode136 chrome/service/cloud_print/print_system.h:136: class JobSpooler : public base::RefCountedThreadSafe<JobSpooler> { ...
10 years, 5 months ago (2010-07-21 01:03:11 UTC) #5
gene
10 years, 5 months ago (2010-07-21 18:19:49 UTC) #6
LGTM

On 2010/07/21 01:03:11, sanjeevr wrote:
> Made the changes.
> 
> http://codereview.chromium.org/3051006/diff/3002/13001
> File chrome/service/cloud_print/print_system.h (right):
> 
> http://codereview.chromium.org/3051006/diff/3002/13001#newcode136
> chrome/service/cloud_print/print_system.h:136: class JobSpooler : public
> base::RefCountedThreadSafe<JobSpooler> {
> On 2010/07/20 20:55:57, Marc-Antoine Ruel wrote:
> > That's outside the scope of this change but the inner classes should be at
the
> > beginning of the outer class.
> 
> Done. Moved them.
> 
> http://codereview.chromium.org/3051006/diff/3002/13002
> File chrome/service/cloud_print/print_system_cups.cc (right):
> 
> http://codereview.chromium.org/3051006/diff/3002/13002#newcode265
> chrome/service/cloud_print/print_system_cups.cc:265: };
> On 2010/07/20 20:55:57, Marc-Antoine Ruel wrote:
> > is this class copyable?
> 
> Done.
> 
> http://codereview.chromium.org/3051006/diff/3002/13003
> File chrome/service/cloud_print/print_system_win.cc (right):
> 
> http://codereview.chromium.org/3051006/diff/3002/13003#newcode417
> chrome/service/cloud_print/print_system_win.cc:417: last_page_printed_ = -1;
> On 2010/07/20 20:55:57, Marc-Antoine Ruel wrote:
> > I think you should do that first and set delegate_ = NULL at the top of the
> > function in case things go wrong.
> 
> Moved last_page_printed_ above. If delegate_ is non-NULL we return false at
the
> top.
> 
> http://codereview.chromium.org/3051006/diff/3002/13005
> File chrome/service/cloud_print/printer_job_handler.h (right):
> 
> http://codereview.chromium.org/3051006/diff/3002/13005#newcode243
> chrome/service/cloud_print/printer_job_handler.h:243: // The message loop
proxy
> reprensenting the thread on which this object
> On 2010/07/20 20:55:57, Marc-Antoine Ruel wrote:
> > representing
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698