OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/ui/ash/system_tray_delegate_utils.h" | 5 #include "chrome/browser/ui/ash/system_tray_delegate_utils.h" |
6 | 6 |
7 #include "ash/common/system/tray/system_tray_delegate.h" | 7 #include "ash/common/system/tray/system_tray_delegate.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/upgrade_detector.h" | 9 #include "chrome/browser/upgrade_detector.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 break; | 26 break; |
27 case UpgradeDetector::UPGRADE_ANNOYANCE_LOW: | 27 case UpgradeDetector::UPGRADE_ANNOYANCE_LOW: |
28 info->severity = ash::UpdateInfo::UPDATE_LOW; | 28 info->severity = ash::UpdateInfo::UPDATE_LOW; |
29 break; | 29 break; |
30 case UpgradeDetector::UPGRADE_ANNOYANCE_NONE: | 30 case UpgradeDetector::UPGRADE_ANNOYANCE_NONE: |
31 info->severity = ash::UpdateInfo::UPDATE_NONE; | 31 info->severity = ash::UpdateInfo::UPDATE_NONE; |
32 break; | 32 break; |
33 } | 33 } |
34 info->update_required = detector->notify_upgrade(); | 34 info->update_required = detector->notify_upgrade(); |
35 info->factory_reset_required = detector->is_factory_reset_required(); | 35 info->factory_reset_required = detector->is_factory_reset_required(); |
| 36 // This value is assumed to be false and overridden on Chrome OS. |
| 37 info->component_update_required = false; |
36 } | 38 } |
OLD | NEW |