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

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: 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/translate_helper.cc ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9bd3b21694baa5a6c577fb0e8f75ff738b82ab68..5e81e6411d9fc745447f74fc24c58f814202c082 100644
--- a/content/browser/browser_child_process_host.cc
+++ b/content/browser/browser_child_process_host.cc
@@ -216,12 +216,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;
}
« no previous file with comments | « chrome/renderer/translate_helper.cc ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698