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

Unified Diff: content/browser/browser_child_process_host.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: Remove static class initializations. 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
Index: content/browser/browser_child_process_host.cc
diff --git a/content/browser/browser_child_process_host.cc b/content/browser/browser_child_process_host.cc
index 628681909e01aaef664340a2acfc8ef094cb9866..25b5a216da4232668d0e4f222712331b681d5ead 100644
--- a/content/browser/browser_child_process_host.cc
+++ b/content/browser/browser_child_process_host.cc
@@ -206,12 +206,13 @@ void BrowserChildProcessHost::OnChildDisconnected() {
// disconnecting the channel so that the exit code and termination status
// become available. This is best effort -- if the process doesn't die
// within the time limit, this object gets destroyed.
- const int kExitCodeWaitMs = 250;
+ const base::TimeDelta kExitCodeWait =
+ base::TimeDelta::FromMilliseconds(250);
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&BrowserChildProcessHost::OnChildDisconnected,
task_factory_.GetWeakPtr()),
- kExitCodeWaitMs);
+ kExitCodeWait);
#endif
return;
}

Powered by Google App Engine
This is Rietveld 408576698