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

Issue 7485011: Virtual Cloud Print Driver for Mac. (Closed)

Created:
9 years, 5 months ago by abeera
Modified:
9 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam
Visibility:
Public.

Description

Virtual Cloud Print Driver for Mac. Includes code for the driver itself. Also modifies the browser process as well as service process to register Apple Event handlers. Also changes the service process to allow registration of driver. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96825

Patch Set 1 #

Total comments: 10

Patch Set 2 : Style fixes. #

Patch Set 3 : More style fixes. #

Patch Set 4 : Further style fixes. #

Total comments: 16

Patch Set 5 : Further style changes. #

Patch Set 6 : Style fixes. #

Patch Set 7 : Style fixes. #

Total comments: 2

Patch Set 8 : Moved code for service process away from content/common to service folder. #

Patch Set 9 : Style fix #

Patch Set 10 : Style fix. #

Patch Set 11 : Style fix. #

Total comments: 28

Patch Set 12 : Style fixes #

Total comments: 33

Patch Set 13 : Style fixes. #

Patch Set 14 : Fixed whitespace #

Patch Set 15 : Fixed gyp file. #

Patch Set 16 : Update GYP file to show warnings. #

Total comments: 36

Patch Set 17 : Fixes as per code review. #

Patch Set 18 : Fixed whitespace. #

Patch Set 19 : Modified to use C++ style casting. #

Patch Set 20 : Fix reordering. #

Patch Set 21 : Fix minor lint issue. #

Total comments: 9

Patch Set 22 : Unify targets in GYP file. #

Patch Set 23 : Fixed tabs in GYP file. #

Patch Set 24 : Removed GUID from other targets #

Total comments: 14

Patch Set 25 : Style fixes. #

Total comments: 2

Patch Set 26 : Style fixes as per code review. #

Patch Set 27 : Fixed typo. #

Patch Set 28 : Changes so that AppleEvent is sent directly to Chrome if it is running. #

Patch Set 29 : Merged with trunk #

Patch Set 30 : Fix build issue. #

Total comments: 14

Patch Set 31 : Style fixes. #

Patch Set 32 : Minor nit #

Patch Set 33 : Remove comments from GYP. #

Patch Set 34 : Fixed copyright #

Unified diffs Side-by-side diffs Delta from patch set Stats (+641 lines, -42 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 6 chunks +56 lines, -0 lines 0 comments Download
A chrome/browser/printing/cloud_print/virtual_driver_install_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/printing/cloud_print/virtual_driver_install_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/service_messages.h View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/service/chrome_service_application_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/service/chrome_service_application_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +101 lines, -0 lines 0 comments Download
M chrome/service/service_ipc_server.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/service/service_ipc_server.cc View 1 2 13 14 15 16 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/service/service_main.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/service/service_process.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/service/service_process.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +24 lines, -0 lines 0 comments Download
M cloud_print/virtual_driver/posix/backend.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +43 lines, -13 lines 0 comments Download
A cloud_print/virtual_driver/posix/install_cloud_print_driver_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +20 lines, -0 lines 0 comments Download
A cloud_print/virtual_driver/posix/installer_util_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +16 lines, -0 lines 0 comments Download
A cloud_print/virtual_driver/posix/installer_util_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +65 lines, -0 lines 0 comments Download
A cloud_print/virtual_driver/posix/printer_driver_util_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +120 lines, -0 lines 0 comments Download
A cloud_print/virtual_driver/posix/uninstall_cloud_print_driver_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +20 lines, -0 lines 0 comments Download
D cloud_print/virtual_driver/virtual_driver_linux.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -20 lines 0 comments Download
A + cloud_print/virtual_driver/virtual_driver_posix.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +1 line, -6 lines 0 comments Download
A content/common/cloud_print_class_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +19 lines, -0 lines 0 comments Download
A content/common/cloud_print_class_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +11 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
abeera
9 years, 5 months ago (2011-07-21 22:18:17 UTC) #1
Nico
Please review your CL for coding style yourself before sending it for review by others. ...
9 years, 5 months ago (2011-07-21 22:22:50 UTC) #2
abeera
I've tried fixing the issues you highlighted and other potential style issues in my code. ...
9 years, 5 months ago (2011-07-22 16:34:55 UTC) #3
abeera
http://codereview.chromium.org/7485011/diff/1/content/common/cloud_print_class_mac.mm File content/common/cloud_print_class_mac.mm (right): http://codereview.chromium.org/7485011/diff/1/content/common/cloud_print_class_mac.mm#newcode7 content/common/cloud_print_class_mac.mm:7: const AEEventClass cloud_print_class = 'GCPp'; Different codes are not ...
9 years, 5 months ago (2011-07-22 16:35:06 UTC) #4
Nico
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml Are there any tests for this code? http://codereview.chromium.org/7485011/diff/7001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7485011/diff/7001/chrome/browser/app_controller_mac.mm#newcode188 chrome/browser/app_controller_mac.mm:188: ...
9 years, 5 months ago (2011-07-22 16:53:55 UTC) #5
abeera
Thank you for your feedback. I did not write any tests since I'm mostly taking ...
9 years, 5 months ago (2011-07-22 20:59:03 UTC) #6
Nico
http://codereview.chromium.org/7485011/diff/7001/content/common/chrome_application_mac.h File content/common/chrome_application_mac.h (right): http://codereview.chromium.org/7485011/diff/7001/content/common/chrome_application_mac.h#newcode71 content/common/chrome_application_mac.h:71: void SetHandler(); On 2011/07/22 20:59:03, abeera wrote: > Name ...
9 years, 5 months ago (2011-07-22 21:02:53 UTC) #7
abeera
Thank you for the suggestion! Creating a new ServiceCrApplication was a really good way of ...
9 years, 5 months ago (2011-07-22 22:58:32 UTC) #8
abeera
http://codereview.chromium.org/7485011/diff/12001/chrome/browser/printing/cloud_print/virtual_driver_install_helper.h File chrome/browser/printing/cloud_print/virtual_driver_install_helper.h (right): http://codereview.chromium.org/7485011/diff/12001/chrome/browser/printing/cloud_print/virtual_driver_install_helper.h#newcode14 chrome/browser/printing/cloud_print/virtual_driver_install_helper.h:14: class VirtualDriverInstallHelper: Pylint still complained. On 2011/07/22 21:02:54, Nico ...
9 years, 5 months ago (2011-07-22 22:58:47 UTC) #9
abeera
Please take a look when you have a chance. Thanks! On 2011/07/22 22:58:47, abeera wrote: ...
9 years, 4 months ago (2011-07-29 21:09:55 UTC) #10
Nico
http://codereview.chromium.org/7485011/diff/7010/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7485011/diff/7010/chrome/browser/app_controller_mac.mm#newcode174 chrome/browser/app_controller_mac.mm:174: - (void)installCloudPrint:(NSAppleEventDescriptor*)event; uninstallCloudPrint: is missing http://codereview.chromium.org/7485011/diff/7010/chrome/browser/app_controller_mac.mm#newcode189 chrome/browser/app_controller_mac.mm:189: - (void)submitPrint:(NSAppleEventDescriptor*)event ...
9 years, 4 months ago (2011-08-01 17:13:39 UTC) #11
abeera
http://codereview.chromium.org/7485011/diff/7010/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7485011/diff/7010/chrome/browser/app_controller_mac.mm#newcode174 chrome/browser/app_controller_mac.mm:174: - (void)installCloudPrint:(NSAppleEventDescriptor*)event; On 2011/08/01 17:13:39, Nico wrote: > uninstallCloudPrint: ...
9 years, 4 months ago (2011-08-01 20:45:10 UTC) #12
Nico
getting there, style-wise Someone from cloud_print needs to have a look too. Since abodenha isn't ...
9 years, 4 months ago (2011-08-01 21:31:12 UTC) #13
abeera
http://codereview.chromium.org/7485011/diff/16002/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7485011/diff/16002/chrome/browser/app_controller_mac.mm#newcode201 chrome/browser/app_controller_mac.mm:201: andEventID:cloudPrintClass]; // Event handler for cloud print. On 2011/08/01 ...
9 years, 4 months ago (2011-08-02 01:21:02 UTC) #14
Scott Byer
Please fix the lint errors as well. Also, double-check that you haven't introduced a permissions ...
9 years, 4 months ago (2011-08-02 23:52:52 UTC) #15
abeera
Thanks for all the feedback. Lint still shows errors with service_main and service_messages, but these ...
9 years, 4 months ago (2011-08-03 20:34:42 UTC) #16
Scott Byer
Ok, looking much better. Need a final review from Nico, the cloud print portions look ...
9 years, 4 months ago (2011-08-04 20:43:47 UTC) #17
Scott Byer
http://codereview.chromium.org/7485011/diff/34006/cloud_print/virtual_driver/posix/installer_util_mac.mm File cloud_print/virtual_driver/posix/installer_util_mac.mm (right): http://codereview.chromium.org/7485011/diff/34006/cloud_print/virtual_driver/posix/installer_util_mac.mm#newcode47 cloud_print/virtual_driver/posix/installer_util_mac.mm:47: if(sendEvent == nil) { nit: space after if
9 years, 4 months ago (2011-08-04 20:43:54 UTC) #18
Nico
http://codereview.chromium.org/7485011/diff/34006/cloud_print/virtual_driver/posix/backend.gyp File cloud_print/virtual_driver/posix/backend.gyp (right): http://codereview.chromium.org/7485011/diff/34006/cloud_print/virtual_driver/posix/backend.gyp#newcode6 cloud_print/virtual_driver/posix/backend.gyp:6: 'targets': [ ], is this needed? remove? http://codereview.chromium.org/7485011/diff/34006/cloud_print/virtual_driver/posix/backend.gyp#newcode8 cloud_print/virtual_driver/posix/backend.gyp:8: ...
9 years, 4 months ago (2011-08-04 20:53:12 UTC) #19
abeera
http://codereview.chromium.org/7485011/diff/34006/cloud_print/virtual_driver/posix/backend.gyp File cloud_print/virtual_driver/posix/backend.gyp (right): http://codereview.chromium.org/7485011/diff/34006/cloud_print/virtual_driver/posix/backend.gyp#newcode8 cloud_print/virtual_driver/posix/backend.gyp:8: 'variables': { 'chromium_code':1}, On 2011/08/04 20:53:12, Nico wrote: > ...
9 years, 4 months ago (2011-08-04 21:53:35 UTC) #20
Nico
LGTM Please send this to the normal trybots as well as to mac_clang and linux_clang. ...
9 years, 4 months ago (2011-08-04 22:04:38 UTC) #21
Scott Byer
9 years, 4 months ago (2011-08-04 22:31:26 UTC) #22
Scott Byer
LGTM for the cloud_print and chrome/service parts. You'll need to get a review from one ...
9 years, 4 months ago (2011-08-04 22:34:27 UTC) #23
brettw
http://codereview.chromium.org/7485011/diff/44032/content/common/cloud_print_class_mac.h File content/common/cloud_print_class_mac.h (right): http://codereview.chromium.org/7485011/diff/44032/content/common/cloud_print_class_mac.h#newcode12 content/common/cloud_print_class_mac.h:12: extern const AEEventClass cloudPrintClass; Is this the correct style ...
9 years, 4 months ago (2011-08-05 23:15:17 UTC) #24
abeera
http://codereview.chromium.org/7485011/diff/44004/chrome/service/chrome_service_application_mac.h File chrome/service/chrome_service_application_mac.h (right): http://codereview.chromium.org/7485011/diff/44004/chrome/service/chrome_service_application_mac.h#newcode13 chrome/service/chrome_service_application_mac.h:13: @interface ServiceCrApplication : CrApplication On 2011/08/04 22:04:38, Nico wrote: ...
9 years, 4 months ago (2011-08-08 17:10:48 UTC) #25
abeera
Thank you for your feedback. http://codereview.chromium.org/7485011/diff/44032/content/common/cloud_print_class_mac.h File content/common/cloud_print_class_mac.h (right): http://codereview.chromium.org/7485011/diff/44032/content/common/cloud_print_class_mac.h#newcode12 content/common/cloud_print_class_mac.h:12: extern const AEEventClass cloudPrintClass; ...
9 years, 4 months ago (2011-08-08 17:12:14 UTC) #26
abeera
I made a few changes to printer_driver_util_mac.mm to handle the first install case, and rebased ...
9 years, 4 months ago (2011-08-09 23:54:57 UTC) #27
abeera
Please take a look when possible. I'm an intern ending next Friday, so a quick ...
9 years, 4 months ago (2011-08-12 17:40:52 UTC) #28
Nico
On 2011/08/12 17:40:52, abeera wrote: > Please take a look when possible. I'm an intern ...
9 years, 4 months ago (2011-08-12 17:43:01 UTC) #29
brettw
LGTM, mostly style nits, I'm assuming others have reviewed the logic since I don't really ...
9 years, 4 months ago (2011-08-12 21:06:50 UTC) #30
abeera
http://codereview.chromium.org/7485011/diff/64002/chrome/common/pref_names.cc File chrome/common/pref_names.cc (right): http://codereview.chromium.org/7485011/diff/64002/chrome/common/pref_names.cc#newcode1395 chrome/common/pref_names.cc:1395: On 2011/08/12 21:06:51, brettw wrote: > I'd only have ...
9 years, 4 months ago (2011-08-15 16:23:06 UTC) #31
commit-bot: I haz the power
Can't process patch for file cloud_print/virtual_driver/virtual_driver_posix.gyp. A +
9 years, 4 months ago (2011-08-15 19:30:19 UTC) #32
jam
I just saw this change. the cloud_print files shouldn't have gone in to content. see ...
9 years, 1 month ago (2011-10-27 05:43:48 UTC) #33
Albert Bodenhamer
It'll be a few days before I can get to this. If you want that ...
9 years, 1 month ago (2011-10-27 15:51:31 UTC) #34
jam
9 years, 1 month ago (2011-10-27 20:16:39 UTC) #35
I'll just move it myself, just wanted to point this out for future changes.

On Thu, Oct 27, 2011 at 8:51 AM, Albert Bodenhamer <abodenha@chromium.org>wrote:

> It'll be a few days before I can get to this.  If you want that code out of
> your way sooner, this stuff should be pretty easy to roll back.
>
>
> On Wed, Oct 26, 2011 at 10:43 PM, <jam@chromium.org> wrote:
>
>> I just saw this change. the cloud_print files shouldn't have gone in to
>> content.
>> see
http://dev.chromium.org/**developers/content-module<http://dev.chromium.org/d...
>>
>>
http://codereview.chromium.**org/7485011/<http://codereview.chromium.org/7485...
>>
>
>
>
> --
> Albert Bodenhamer | Software Engineer |
abodenha@chromium.<abodenha@google.com>
> org
>

Powered by Google App Engine
This is Rietveld 408576698