Index: chrome/browser/intranet_redirect_detector.cc |
=================================================================== |
--- chrome/browser/intranet_redirect_detector.cc (revision 117824) |
+++ chrome/browser/intranet_redirect_detector.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -33,11 +33,11 @@ |
// Ideally, instead of this timer, we'd do something like "check if the |
// browser is starting up, and if so, come back later", but there is currently |
// no function to do this. |
- static const int kStartFetchDelaySeconds = 7; |
+ static const int kStartFetchDelayMS = 7000; |
MessageLoop::current()->PostDelayedTask(FROM_HERE, |
base::Bind(&IntranetRedirectDetector::FinishSleep, |
weak_factory_.GetWeakPtr()), |
- base::TimeDelta::FromSeconds(kStartFetchDelaySeconds)); |
+ kStartFetchDelayMS); |
net::NetworkChangeNotifier::AddIPAddressObserver(this); |
} |
@@ -154,7 +154,7 @@ |
MessageLoop::current()->PostDelayedTask(FROM_HERE, |
base::Bind(&IntranetRedirectDetector::FinishSleep, |
weak_factory_.GetWeakPtr()), |
- base::TimeDelta::FromMilliseconds(kNetworkSwitchDelayMS)); |
+ kNetworkSwitchDelayMS); |
} |
IntranetRedirectHostResolverProc::IntranetRedirectHostResolverProc( |