OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/installer/gcapi_mac/gcapi.h" | 5 #include "chrome/installer/gcapi_mac/gcapi.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #include <sys/utsname.h> | 8 #include <sys/utsname.h> |
9 | 9 |
10 namespace { | 10 namespace { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 local_reasons |= GCCC_ERROR_USERLEVELALREADYPRESENT; | 115 local_reasons |= GCCC_ERROR_USERLEVELALREADYPRESENT; |
116 | 116 |
117 [pool drain]; | 117 [pool drain]; |
118 | 118 |
119 // Done. Copy/return results. | 119 // Done. Copy/return results. |
120 if (reasons != NULL) | 120 if (reasons != NULL) |
121 *reasons = local_reasons; | 121 *reasons = local_reasons; |
122 | 122 |
123 return local_reasons == 0; | 123 return local_reasons == 0; |
124 } | 124 } |
125 | |
126 int LaunchGoogleChrome() { | |
127 @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
| |
128 return [[NSWorkspace sharedWorkspace] | |
129 launchApplication:@"/Applications/Google Chrome.app"]; | |
130 } | |
131 } | |
OLD | NEW |