Commit 587702ac authored by mark@chromium.org's avatar mark@chromium.org

Update KeystoneRegistration.framework to 1.2.0.6782.

The big change in this version is that an installation attempt initiated by
the application can show up as ondemand on the server. This will allow us to
provide throttled Mac downloads (such as a "5% push") with correct behavior.

BUG=35495
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/141193002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245361 0039d316-1c4b-4281-b951-d872f2087c98
parent df6a024c
...@@ -559,7 +559,11 @@ NSString* const kVersionKey = @"KSVersion"; ...@@ -559,7 +559,11 @@ NSString* const kVersionKey = @"KSVersion";
[self updateStatus:kAutoupdateChecking version:nil]; [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 // Upon completion, ksr::KSRegistrationCheckForUpdateNotification will be
// posted, and -checkForUpdateComplete: will be called. // posted, and -checkForUpdateComplete: will be called.
......
...@@ -38,7 +38,7 @@ namespace ksr = keystone_registration; ...@@ -38,7 +38,7 @@ namespace ksr = keystone_registration;
- (void)setActive { - (void)setActive {
} }
- (void)checkForUpdate { - (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated {
} }
- (void)startUpdate { - (void)startUpdate {
...@@ -55,7 +55,7 @@ namespace ksr = keystone_registration; ...@@ -55,7 +55,7 @@ namespace ksr = keystone_registration;
// Send the notifications that a real KeystoneGlue object would send. // Send the notifications that a real KeystoneGlue object would send.
- (void)checkForUpdate { - (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated {
NSNumber* yesNumber = [NSNumber numberWithBool:YES]; NSNumber* yesNumber = [NSNumber numberWithBool:YES];
NSString* statusKey = @"Status"; NSString* statusKey = @"Status";
NSDictionary* dictionary = [NSDictionary dictionaryWithObject:yesNumber NSDictionary* dictionary = [NSDictionary dictionaryWithObject:yesNumber
......
...@@ -62,7 +62,7 @@ extern NSString* KSRegistrationRemoveExistingTag; ...@@ -62,7 +62,7 @@ extern NSString* KSRegistrationRemoveExistingTag;
authorization:(AuthorizationRef)authorization; authorization:(AuthorizationRef)authorization;
- (void)setActive; - (void)setActive;
- (void)checkForUpdate; - (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated;
- (void)startUpdate; - (void)startUpdate;
- (keystone_registration::KSRegistrationTicketType)ticketType; - (keystone_registration::KSRegistrationTicketType)ticketType;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment