Chromium Code Reviews| Index: chrome/service/chrome_service_application_mac.mm |
| diff --git a/chrome/service/chrome_service_application_mac.mm b/chrome/service/chrome_service_application_mac.mm |
| index 845d9f06f77304bbe625d4cda1c0c6964c5ab439..3b6eb301df951f60a342bb81c790d99a4a0cb512 100644 |
| --- a/chrome/service/chrome_service_application_mac.mm |
| +++ b/chrome/service/chrome_service_application_mac.mm |
| @@ -9,14 +9,14 @@ |
| #import "chrome/common/cloud_print/cloud_print_class_mac.h" |
| #include "chrome/common/chrome_switches.h" |
| -@interface ServiceCrApplication () |
| +@interface ServiceApplication () |
| - (void)setCloudPrintHandler; |
| - (void)submitPrint:(NSAppleEventDescriptor*)event; |
| @end |
| -@implementation ServiceCrApplication |
| +@implementation ServiceApplication |
| --(void)setCloudPrintHandler { |
| +- (void)setCloudPrintHandler { |
| NSAppleEventManager* em = [NSAppleEventManager sharedAppleEventManager]; |
| [em setEventHandler:self |
| andSelector:@selector(submitPrint:) |
| @@ -90,10 +90,12 @@ |
| namespace chrome_service_application_mac { |
| -void RegisterServiceCrApp() { |
| - ServiceCrApplication* var = |
| - static_cast<ServiceCrApplication*> |
| - ([ServiceCrApplication sharedApplication]); |
| +void RegisterServiceApp() { |
| + LOG(ERROR) << "chrome_service_application_mac::RegisterServiceApp()"; |
| + ServiceApplication* var = |
| + base::mac::ObjCCastStrict<ServiceApplication>( |
| + [ServiceApplication sharedApplication]); |
| + NSLog(@"var: %@", var); |
|
Robert Sesek
2011/12/02 20:36:43
Stray NSLog
Scott Hess - ex-Googler
2011/12/02 20:58:14
Oh, darn, git-commit -a bites again! Thanks for c
|
| [var setCloudPrintHandler]; |
| } |