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

Unified Diff: chrome/browser/metrics/variations/variations_service.cc

Issue 271853004: Merge NetworkTimeNotifier to NetworkTimeTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/io_thread.cc ('k') | chrome/browser/network_time/network_time_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/variations/variations_service.cc
diff --git a/chrome/browser/metrics/variations/variations_service.cc b/chrome/browser/metrics/variations/variations_service.cc
index e19b4521644b5fa0c81d021ea3ec5ddf85664951..8c04f33547c5855476f81bbc0343c5543af4ea7d 100644
--- a/chrome/browser/metrics/variations/variations_service.cc
+++ b/chrome/browser/metrics/variations/variations_service.cc
@@ -499,10 +499,11 @@ void VariationsService::OnURLFetchComplete(const net::URLFetcher* source) {
DCHECK(success || response_date.is_null());
if (!response_date.is_null()) {
- NetworkTimeTracker::BuildNotifierUpdateCallback().Run(
+ g_browser_process->network_time_tracker()->UpdateNetworkTime(
response_date,
base::TimeDelta::FromMilliseconds(kServerTimeResolutionMs),
- latency);
+ latency,
+ base::TimeTicks::Now());
}
}
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/network_time/network_time_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698