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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 2366943003: Create NetworkTimeTracker on startup for users in Finch experiment (Closed)
Patch Set: fix base::Feature declaration Created 4 years, 3 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 | « no previous file | components/network_time/network_time_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 3d002dad6f012a3bcbe1518e242a79e8630b9a7b..5a32e520a3b5b9770b42f817b19ef81080d8e280 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -1067,6 +1067,13 @@ void BrowserProcessImpl::PreMainMessageLoopRun() {
CacheDefaultWebClientState();
platform_part_->PreMainMessageLoopRun();
+
+ if (base::FeatureList::IsEnabled(network_time::kNetworkTimeServiceQuerying)) {
+ network_time_tracker_.reset(new network_time::NetworkTimeTracker(
Nico 2016/09/27 15:51:24 Does this do any amount of real work that could sl
estark 2016/09/27 18:56:24 It reads a pref and then, in some cases, starts a
Nico 2016/09/27 19:07:23 Reading prefs is ok. Is the network request needed
estark 2016/09/27 19:37:44 It is, unfortunately, needed right at startup. The
+ base::WrapUnique(new base::DefaultClock()),
+ base::WrapUnique(new base::DefaultTickClock()), local_state(),
+ system_request_context()));
mab 2016/09/26 21:45:09 Note that the network_time_tracker() getter above
estark 2016/09/26 21:55:40 Yeah, I considered that but thought it was a littl
+ }
}
void BrowserProcessImpl::CreateIconManager() {
« no previous file with comments | « no previous file | components/network_time/network_time_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698