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

Unified Diff: chrome/renderer/net/renderer_net_predictor.cc

Issue 9233018: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 years, 11 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/renderer/extensions/user_script_idle_scheduler.cc ('k') | chrome/renderer/translate_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/net/renderer_net_predictor.cc
diff --git a/chrome/renderer/net/renderer_net_predictor.cc b/chrome/renderer/net/renderer_net_predictor.cc
index 9b6c489746b4e27ae6bfa0ab77d8c822dea1e635..aff24c13387bc055f682dc7e41fc9e885264667a 100644
--- a/chrome/renderer/net/renderer_net_predictor.cc
+++ b/chrome/renderer/net/renderer_net_predictor.cc
@@ -57,7 +57,7 @@ void RendererNetPredictor::Resolve(const char* name, size_t length) {
RenderThread::Get()->GetMessageLoop()->PostDelayedTask(
FROM_HERE, base::Bind(&RendererNetPredictor::SubmitHostnames,
weak_factory_.GetWeakPtr()),
- 10);
+ base::TimeDelta::FromMilliseconds(10));
}
return;
}
@@ -92,7 +92,7 @@ void RendererNetPredictor::SubmitHostnames() {
RenderThread::Get()->GetMessageLoop()->PostDelayedTask(
FROM_HERE, base::Bind(&RendererNetPredictor::SubmitHostnames,
weak_factory_.GetWeakPtr()),
- 10);
+ base::TimeDelta::FromMilliseconds(10));
} else {
// TODO(JAR): Should we only clear the map when we navigate, or reload?
domain_map_.clear();
« no previous file with comments | « chrome/renderer/extensions/user_script_idle_scheduler.cc ('k') | chrome/renderer/translate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698