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

Unified Diff: chrome/service/chrome_service_application_mac.mm

Issue 8771028: [Mac] Remove content/ CrApplication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize service process NSApp before message loop. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/service/chrome_service_application_mac.h ('k') | chrome/service/service_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
}
« no previous file with comments | « chrome/service/chrome_service_application_mac.h ('k') | chrome/service/service_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698