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

Unified Diff: chrome/browser/chromeos/upgrade_detector_chromeos.cc

Issue 421643002: Make UpgradeDetector listen to VariationsService changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix gpu bot failures Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/upgrade_detector_chromeos.h ('k') | chrome/browser/upgrade_detector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/upgrade_detector_chromeos.cc
===================================================================
--- chrome/browser/chromeos/upgrade_detector_chromeos.cc (revision 287812)
+++ chrome/browser/chromeos/upgrade_detector_chromeos.cc (working copy)
@@ -41,7 +41,7 @@
if (status.status != UpdateEngineClient::UPDATE_STATUS_UPDATED_NEED_REBOOT)
return;
- NotifyUpgradeDetected();
+ upgrade_detected_time_ = base::Time::Now();
// ChromeOS shows upgrade arrow once the upgrade becomes available.
NotifyOnUpgrade();
@@ -53,7 +53,7 @@
}
void UpgradeDetectorChromeos::NotifyOnUpgrade() {
- base::TimeDelta delta = base::Time::Now() - upgrade_detected_time();
+ base::TimeDelta delta = base::Time::Now() - upgrade_detected_time_;
int64 time_passed = delta.InDays();
const int kSevereThreshold = 7;
« no previous file with comments | « chrome/browser/chromeos/upgrade_detector_chromeos.h ('k') | chrome/browser/upgrade_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698