diff options
-rw-r--r-- | chrome/browser/mac/keystone_glue.mm | 6 | ||||
-rw-r--r-- | chrome/browser/mac/keystone_glue_unittest.mm | 4 | ||||
-rw-r--r-- | chrome/browser/mac/keystone_registration.h | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/mac/keystone_glue.mm b/chrome/browser/mac/keystone_glue.mm index dea4bb4..b0b2939 100644 --- a/chrome/browser/mac/keystone_glue.mm +++ b/chrome/browser/mac/keystone_glue.mm @@ -559,7 +559,11 @@ NSString* const kVersionKey = @"KSVersion"; [self updateStatus:kAutoupdateChecking version:nil]; - [registration_ checkForUpdate]; + // All checks from inside Chrome are considered user-initiated, because they + // only happen following a user action, such as visiting the about page. + // Non-user-initiated checks are the periodic checks automatically made by + // Keystone, which don't come through this code path (or even this process). + [registration_ checkForUpdateWasUserInitiated:YES]; // Upon completion, ksr::KSRegistrationCheckForUpdateNotification will be // posted, and -checkForUpdateComplete: will be called. diff --git a/chrome/browser/mac/keystone_glue_unittest.mm b/chrome/browser/mac/keystone_glue_unittest.mm index 5b9c2ca0..bf320db 100644 --- a/chrome/browser/mac/keystone_glue_unittest.mm +++ b/chrome/browser/mac/keystone_glue_unittest.mm @@ -38,7 +38,7 @@ namespace ksr = keystone_registration; - (void)setActive { } -- (void)checkForUpdate { +- (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated { } - (void)startUpdate { @@ -55,7 +55,7 @@ namespace ksr = keystone_registration; // Send the notifications that a real KeystoneGlue object would send. -- (void)checkForUpdate { +- (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated { NSNumber* yesNumber = [NSNumber numberWithBool:YES]; NSString* statusKey = @"Status"; NSDictionary* dictionary = [NSDictionary dictionaryWithObject:yesNumber diff --git a/chrome/browser/mac/keystone_registration.h b/chrome/browser/mac/keystone_registration.h index 3ef981d..1354d2d 100644 --- a/chrome/browser/mac/keystone_registration.h +++ b/chrome/browser/mac/keystone_registration.h @@ -62,7 +62,7 @@ extern NSString* KSRegistrationRemoveExistingTag; authorization:(AuthorizationRef)authorization; - (void)setActive; -- (void)checkForUpdate; +- (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated; - (void)startUpdate; - (keystone_registration::KSRegistrationTicketType)ticketType; |