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

Side by Side 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, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/network_time/network_time_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 1060
1061 #if !defined(OS_ANDROID) 1061 #if !defined(OS_ANDROID)
1062 storage_monitor::StorageMonitor::Create(); 1062 storage_monitor::StorageMonitor::Create();
1063 #endif 1063 #endif
1064 1064
1065 child_process_watcher_.reset(new ChromeChildProcessWatcher()); 1065 child_process_watcher_.reset(new ChromeChildProcessWatcher());
1066 1066
1067 CacheDefaultWebClientState(); 1067 CacheDefaultWebClientState();
1068 1068
1069 platform_part_->PreMainMessageLoopRun(); 1069 platform_part_->PreMainMessageLoopRun();
1070
1071 if (base::FeatureList::IsEnabled(network_time::kNetworkTimeServiceQuerying)) {
1072 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
1073 base::WrapUnique(new base::DefaultClock()),
1074 base::WrapUnique(new base::DefaultTickClock()), local_state(),
1075 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
1076 }
1070 } 1077 }
1071 1078
1072 void BrowserProcessImpl::CreateIconManager() { 1079 void BrowserProcessImpl::CreateIconManager() {
1073 DCHECK(!created_icon_manager_ && !icon_manager_); 1080 DCHECK(!created_icon_manager_ && !icon_manager_);
1074 created_icon_manager_ = true; 1081 created_icon_manager_ = true;
1075 icon_manager_.reset(new IconManager); 1082 icon_manager_.reset(new IconManager);
1076 } 1083 }
1077 1084
1078 void BrowserProcessImpl::CreateIntranetRedirectDetector() { 1085 void BrowserProcessImpl::CreateIntranetRedirectDetector() {
1079 DCHECK(!intranet_redirect_detector_); 1086 DCHECK(!intranet_redirect_detector_);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 } 1352 }
1346 1353
1347 void BrowserProcessImpl::OnAutoupdateTimer() { 1354 void BrowserProcessImpl::OnAutoupdateTimer() {
1348 if (CanAutorestartForUpdate()) { 1355 if (CanAutorestartForUpdate()) {
1349 DLOG(WARNING) << "Detected update. Restarting browser."; 1356 DLOG(WARNING) << "Detected update. Restarting browser.";
1350 RestartBackgroundInstance(); 1357 RestartBackgroundInstance();
1351 } 1358 }
1352 } 1359 }
1353 1360
1354 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 1361 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« 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