| Index: chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| diff --git a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| index 945b7efd27137307ffddfd362c6013d0c2720763..19a5274c3e82cc1b96ee1fd42f51eeab41c8d0b7 100644
|
| --- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| +++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
|
| @@ -180,9 +180,9 @@ bool KeystonePromotionInfoBarDelegate::ShouldExpireInternal(
|
| // -updateStatus:.
|
| [self retain];
|
|
|
| - AutoupdateStatus recentStatus = [keystoneGlue recentStatus];
|
| - if (recentStatus == kAutoupdateNone ||
|
| - recentStatus == kAutoupdateRegistering) {
|
| + keystone_glue::AutoupdateStatus recentStatus = [keystoneGlue recentStatus];
|
| + if (recentStatus == keystone_glue::kAutoupdateNone ||
|
| + recentStatus == keystone_glue::kAutoupdateRegistering) {
|
| NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
|
| [center addObserver:self
|
| selector:@selector(updateStatus:)
|
| @@ -195,16 +195,18 @@ bool KeystonePromotionInfoBarDelegate::ShouldExpireInternal(
|
|
|
| - (void)updateStatus:(NSNotification*)notification {
|
| NSDictionary* dictionary = [notification userInfo];
|
| - AutoupdateStatus status = static_cast<AutoupdateStatus>(
|
| - [[dictionary objectForKey:kAutoupdateStatusStatus] intValue]);
|
| + keystone_glue::AutoupdateStatus status =
|
| + static_cast<keystone_glue::AutoupdateStatus>(
|
| + [[dictionary objectForKey:kAutoupdateStatusStatus] intValue]);
|
|
|
| - if (status == kAutoupdateNone || status == kAutoupdateRegistering) {
|
| + if (status == keystone_glue::kAutoupdateNone ||
|
| + status == keystone_glue::kAutoupdateRegistering) {
|
| return;
|
| }
|
|
|
| [self removeObserver];
|
|
|
| - if (status != kAutoupdateRegisterFailed &&
|
| + if (status != keystone_glue::kAutoupdateRegisterFailed &&
|
| [[KeystoneGlue defaultKeystoneGlue] needsPromotion]) {
|
| KeystonePromotionInfoBarDelegate::Create();
|
| }
|
|
|