| Index: chrome/browser/upgrade_detector.cc
|
| diff --git a/chrome/browser/upgrade_detector.cc b/chrome/browser/upgrade_detector.cc
|
| index 79e062351535b0f08ad751cf2ca7e08fee547c47..2023676618e2a3d1c828e24af3d56c89105d517f 100644
|
| --- a/chrome/browser/upgrade_detector.cc
|
| +++ b/chrome/browser/upgrade_detector.cc
|
| @@ -79,7 +79,8 @@ void UpgradeDetector::NotifyUpgradeDetected() {
|
| }
|
|
|
| void UpgradeDetector::NotifyUpgradeRecommended() {
|
| - notify_upgrade_ = true;
|
| + notify_upgrade_ = (upgrade_available_ != UPGRADE_AVAILABLE_NONE &&
|
| + upgrade_notification_stage() != UPGRADE_ANNOYANCE_NONE);
|
|
|
| content::NotificationService::current()->Notify(
|
| chrome::NOTIFICATION_UPGRADE_RECOMMENDED,
|
| @@ -110,6 +111,13 @@ void UpgradeDetector::NotifyUpgradeRecommended() {
|
| this, &UpgradeDetector::CheckIdle);
|
| break;
|
| }
|
| + case UPGRADE_NEEDS_ELEVATION: {
|
| + content::NotificationService::current()->Notify(
|
| + chrome::NOTIFICATION_UPGRADE_NEEDS_ELEVATION,
|
| + content::Source<UpgradeDetector>(this),
|
| + content::NotificationService::NoDetails());
|
| + break;
|
| + }
|
| default:
|
| break;
|
| }
|
|
|