| 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 #import "chrome/browser/mac/keystone_glue.h" | 5 #import "chrome/browser/mac/keystone_glue.h" |
| 6 | 6 |
| 7 #include <sys/mount.h> | 7 #include <sys/mount.h> |
| 8 #include <sys/param.h> | 8 #include <sys/param.h> |
| 9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 - (void)changePermissionsForPromotionComplete; | 190 - (void)changePermissionsForPromotionComplete; |
| 191 | 191 |
| 192 // Returns the brand file path to use for Keystone. | 192 // Returns the brand file path to use for Keystone. |
| 193 - (NSString*)brandFilePath; | 193 - (NSString*)brandFilePath; |
| 194 | 194 |
| 195 // YES if no update installation has succeeded since a binary diff patch | 195 // YES if no update installation has succeeded since a binary diff patch |
| 196 // installation failed. This signals the need to attempt a full installer | 196 // installation failed. This signals the need to attempt a full installer |
| 197 // which does not depend on applying a patch to existing files. | 197 // which does not depend on applying a patch to existing files. |
| 198 - (BOOL)wantsFullInstaller; | 198 - (BOOL)wantsFullInstaller; |
| 199 | 199 |
| 200 // Returns an NSString* suitable for appending to a Chrome Keystone tag value | 200 // Returns an NSString* suitable for appending to a Chrome Keystone tag value or |
| 201 // or tag key. If the system has a 32-bit-only CPU, the tag suffix will | 201 // tag key. If a full installer (as opposed to a binary diff/delta patch) is |
| 202 // contain the string "-32bit". If a full installer (as opposed to a binary | 202 // required, the tag suffix will contain the string "-full". If no special |
| 203 // diff/delta patch) is required, the tag suffix will contain the string | 203 // treatment is required, the tag suffix will be an empty string. |
| 204 // "-full". If no special treatment is required, the tag suffix will be an | |
| 205 // empty string. | |
| 206 - (NSString*)tagSuffix; | 204 - (NSString*)tagSuffix; |
| 207 | 205 |
| 208 @end // @interface KeystoneGlue (Private) | 206 @end // @interface KeystoneGlue (Private) |
| 209 | 207 |
| 210 NSString* const kAutoupdateStatusNotification = @"AutoupdateStatusNotification"; | 208 NSString* const kAutoupdateStatusNotification = @"AutoupdateStatusNotification"; |
| 211 NSString* const kAutoupdateStatusStatus = @"status"; | 209 NSString* const kAutoupdateStatusStatus = @"status"; |
| 212 NSString* const kAutoupdateStatusVersion = @"version"; | 210 NSString* const kAutoupdateStatusVersion = @"version"; |
| 213 | 211 |
| 214 namespace { | 212 namespace { |
| 215 | 213 |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 return [KeystoneGlue defaultKeystoneGlue] != nil; | 1131 return [KeystoneGlue defaultKeystoneGlue] != nil; |
| 1134 } | 1132 } |
| 1135 | 1133 |
| 1136 base::string16 CurrentlyInstalledVersion() { | 1134 base::string16 CurrentlyInstalledVersion() { |
| 1137 KeystoneGlue* keystoneGlue = [KeystoneGlue defaultKeystoneGlue]; | 1135 KeystoneGlue* keystoneGlue = [KeystoneGlue defaultKeystoneGlue]; |
| 1138 NSString* version = [keystoneGlue currentlyInstalledVersion]; | 1136 NSString* version = [keystoneGlue currentlyInstalledVersion]; |
| 1139 return base::SysNSStringToUTF16(version); | 1137 return base::SysNSStringToUTF16(version); |
| 1140 } | 1138 } |
| 1141 | 1139 |
| 1142 } // namespace keystone_glue | 1140 } // namespace keystone_glue |
| OLD | NEW |