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

Unified Diff: chrome/installer/gcapi_mac/gcapi.mm

Issue 10386218: mac gcapi: Add LaunchGoogleChrome() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 months 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
Index: chrome/installer/gcapi_mac/gcapi.mm
diff --git a/chrome/installer/gcapi_mac/gcapi.mm b/chrome/installer/gcapi_mac/gcapi.mm
index 2530e8d2077dead82d06ad6a682e4903c70797e7..12413f51ebe504ada0268be61c39c32682f7fa74 100644
--- a/chrome/installer/gcapi_mac/gcapi.mm
+++ b/chrome/installer/gcapi_mac/gcapi.mm
@@ -122,3 +122,10 @@ int GoogleChromeCompatibilityCheck(unsigned* reasons) {
return local_reasons == 0;
}
+
+int LaunchGoogleChrome() {
+ @autoreleasepool {
Mark Mentovai 2012/05/18 19:15:06 You used an explicit NSAutoreleasePool in GoogleCh
Nico 2012/05/18 19:21:24 In GCCC, @autoreleasepool would indent the whole f
+ return [[NSWorkspace sharedWorkspace]
+ launchApplication:@"/Applications/Google Chrome.app"];
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698