summaryrefslogtreecommitdiff
path: root/chromium/content/browser/sms/sms_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/sms/sms_service.cc')
-rw-r--r--chromium/content/browser/sms/sms_service.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/content/browser/sms/sms_service.cc b/chromium/content/browser/sms/sms_service.cc
index f97f207c5ac..f409195b405 100644
--- a/chromium/content/browser/sms/sms_service.cc
+++ b/chromium/content/browser/sms/sms_service.cc
@@ -103,7 +103,8 @@ void SmsService::OnReceive(const std::string& one_time_code) {
DCHECK(!one_time_code_);
DCHECK(!start_time_.is_null());
- RecordSmsReceiveTime(base::TimeTicks::Now() - start_time_);
+ auto now = base::TimeTicks::Now();
+ RecordSmsReceiveTime(now - start_time_);
one_time_code_ = one_time_code;
@@ -114,7 +115,7 @@ void SmsService::OnReceive(const std::string& one_time_code) {
return;
}
- receive_time_ = base::TimeTicks::Now();
+ receive_time_ = now;
OpenInfoBar(one_time_code);
}