Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: chrome/browser/upgrade_detector.cc

Issue 614363002: Added Aura notification that relaunch and powerwash is required in case of downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698