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

Unified Diff: chrome/renderer/extensions/user_script_idle_scheduler.cc

Issue 9185026: 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: Explicitly include base/time.h in header file. 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/chrome_render_view_observer.cc ('k') | chrome/renderer/net/renderer_net_predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/user_script_idle_scheduler.cc
diff --git a/chrome/renderer/extensions/user_script_idle_scheduler.cc b/chrome/renderer/extensions/user_script_idle_scheduler.cc
index 4042bfdf560410370f42b56c278dbd8943ff979f..d087abb96ee7e29f5fa73514ba2fdcfb1d1dab01 100644
--- a/chrome/renderer/extensions/user_script_idle_scheduler.cc
+++ b/chrome/renderer/extensions/user_script_idle_scheduler.cc
@@ -56,7 +56,7 @@ void UserScriptIdleScheduler::DidFinishDocumentLoad() {
MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&UserScriptIdleScheduler::MaybeRun,
weak_factory_.GetWeakPtr()),
- kUserScriptIdleTimeoutMs);
+ base::TimeDelta::FromMilliseconds(kUserScriptIdleTimeoutMs));
}
void UserScriptIdleScheduler::DidFinishLoad() {
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | chrome/renderer/net/renderer_net_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698