OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/upgrade_detector.h" | 5 #include "chrome/browser/upgrade_detector.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 NOTREACHED(); | 56 NOTREACHED(); |
57 return 0; | 57 return 0; |
58 } | 58 } |
59 | 59 |
60 UpgradeDetector::UpgradeDetector() | 60 UpgradeDetector::UpgradeDetector() |
61 : upgrade_available_(UPGRADE_AVAILABLE_NONE), | 61 : upgrade_available_(UPGRADE_AVAILABLE_NONE), |
62 best_effort_experiment_updates_available_(false), | 62 best_effort_experiment_updates_available_(false), |
63 critical_experiment_updates_available_(false), | 63 critical_experiment_updates_available_(false), |
64 critical_update_acknowledged_(false), | 64 critical_update_acknowledged_(false), |
| 65 is_factory_reset_required_(false), |
65 upgrade_notification_stage_(UPGRADE_ANNOYANCE_NONE), | 66 upgrade_notification_stage_(UPGRADE_ANNOYANCE_NONE), |
66 notify_upgrade_(false) { | 67 notify_upgrade_(false) { |
67 } | 68 } |
68 | 69 |
69 UpgradeDetector::~UpgradeDetector() { | 70 UpgradeDetector::~UpgradeDetector() { |
70 } | 71 } |
71 | 72 |
72 void UpgradeDetector::NotifyUpgradeRecommended() { | 73 void UpgradeDetector::NotifyUpgradeRecommended() { |
73 notify_upgrade_ = true; | 74 notify_upgrade_ = true; |
74 | 75 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 break; | 128 break; |
128 case IDLE_STATE_ACTIVE: | 129 case IDLE_STATE_ACTIVE: |
129 case IDLE_STATE_UNKNOWN: | 130 case IDLE_STATE_UNKNOWN: |
130 break; | 131 break; |
131 default: | 132 default: |
132 NOTREACHED(); // Need to add any new value above (either providing | 133 NOTREACHED(); // Need to add any new value above (either providing |
133 // automatic restart or show notification to user). | 134 // automatic restart or show notification to user). |
134 break; | 135 break; |
135 } | 136 } |
136 } | 137 } |
OLD | NEW |