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

Unified Diff: net/base/network_config_watcher_mac.cc

Issue 10029001: Update use of TimeDelta in net/*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 | « net/base/network_change_notifier_win.cc ('k') | net/dns/serial_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_config_watcher_mac.cc
diff --git a/net/base/network_config_watcher_mac.cc b/net/base/network_config_watcher_mac.cc
index 464ebfa9712f1ba4d73bb7059666a684d6830d53..cd7f53a7c29e6cd3e147bfc6e49139a27e8bce14 100644
--- a/net/base/network_config_watcher_mac.cc
+++ b/net/base/network_config_watcher_mac.cc
@@ -71,12 +71,12 @@ void NetworkConfigWatcherMacThread::Init() {
// TODO(willchan): Look to see if there's a better signal for when it's ok to
// initialize this, rather than just delaying it by a fixed time.
- const int kInitializationDelayMS = 1000;
+ const base::TimeDelta kInitializationDelay = base::TimeDelta::FromSeconds(1);
message_loop()->PostDelayedTask(
FROM_HERE,
base::Bind(&NetworkConfigWatcherMacThread::InitNotifications,
weak_factory_.GetWeakPtr()),
- kInitializationDelayMS);
+ kInitializationDelay);
}
void NetworkConfigWatcherMacThread::CleanUp() {
« no previous file with comments | « net/base/network_change_notifier_win.cc ('k') | net/dns/serial_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698