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

Unified Diff: content/ppapi_plugin/plugin_process_dispatcher.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/ppapi_plugin/plugin_process_dispatcher.cc
diff --git a/content/ppapi_plugin/plugin_process_dispatcher.cc b/content/ppapi_plugin/plugin_process_dispatcher.cc
index 1ac23d14795e783679d3ffc559d74fe5d0252411..a2b77e95bb9f441745295d1964614f2d5097ce18 100644
--- a/content/ppapi_plugin/plugin_process_dispatcher.cc
+++ b/content/ppapi_plugin/plugin_process_dispatcher.cc
@@ -11,7 +11,8 @@
namespace {
// How long we wait before releasing the plugin process.
-const int kPluginReleaseTimeMs = 30 * 1000; // 30 seconds.
+const base::TimeDelta kPluginReleaseTime =
brettw 2012/01/15 17:28:15 I don't think we want this static class, right? I'
+ base::TimeDelta::FromSeconds(30);
} // namespace
@@ -32,5 +33,5 @@ PluginProcessDispatcher::~PluginProcessDispatcher() {
FROM_HERE,
base::Bind(&ChildProcess::ReleaseProcess,
base::Unretained(ChildProcess::current())),
- kPluginReleaseTimeMs);
+ kPluginReleaseTime);
}

Powered by Google App Engine
This is Rietveld 408576698