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

Unified Diff: chrome/browser/upgrade_detector_impl.cc

Issue 500623002: Use TimeTicks::Now() instead of Time::Now() in upgrade detector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix type. 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/upgrade_detector_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/upgrade_detector_impl.cc
diff --git a/chrome/browser/upgrade_detector_impl.cc b/chrome/browser/upgrade_detector_impl.cc
index f0e854c88f15c6742dd613a0ac50f5f437b1b44c..58061e305c8f55b2361fc7bc72c012c7b707030a 100644
--- a/chrome/browser/upgrade_detector_impl.cc
+++ b/chrome/browser/upgrade_detector_impl.cc
@@ -359,7 +359,7 @@ void UpgradeDetectorImpl::StartUpgradeNotificationTimer() {
if (upgrade_notification_timer_.IsRunning())
return;
- upgrade_detected_time_ = base::Time::Now();
+ upgrade_detected_time_ = base::TimeTicks::Now();
// Start the repeating timer for notifying the user after a certain period.
// The called function will eventually figure out that enough time has passed
@@ -512,7 +512,7 @@ void UpgradeDetectorImpl::NotifyOnUpgradeWithTimePassed(
void UpgradeDetectorImpl::NotifyOnUpgrade() {
const base::TimeDelta time_passed =
- base::Time::Now() - upgrade_detected_time_;
+ base::TimeTicks::Now() - upgrade_detected_time_;
NotifyOnUpgradeWithTimePassed(time_passed);
}
« no previous file with comments | « chrome/browser/upgrade_detector_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698