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

Unified Diff: content/plugin/plugin_channel.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 | « content/browser/renderer_host/resource_dispatcher_host_uitest.cc ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/plugin_channel.cc
diff --git a/content/plugin/plugin_channel.cc b/content/plugin/plugin_channel.cc
index a410af757e442c83ebd13bf0437a46a771194667..ea4b812b77c722752e685c0ac3c0779116d8d77b 100644
--- a/content/plugin/plugin_channel.cc
+++ b/content/plugin/plugin_channel.cc
@@ -31,7 +31,7 @@ void PluginReleaseCallback() {
}
// How long we wait before releasing the plugin process.
-const int kPluginReleaseTimeMs = 5 * 60 * 1000; // 5 minutes
+const int kPluginReleaseTimeMinutes = 5;
} // namespace
@@ -177,7 +177,9 @@ PluginChannel::~PluginChannel() {
base::CloseProcessHandle(renderer_handle_);
MessageLoop::current()->PostDelayedTask(
- FROM_HERE, base::Bind(&PluginReleaseCallback), kPluginReleaseTimeMs);
+ FROM_HERE,
+ base::Bind(&PluginReleaseCallback),
+ base::TimeDelta::FromMinutes(kPluginReleaseTimeMinutes));
}
bool PluginChannel::Send(IPC::Message* msg) {
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_uitest.cc ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698