Index: chrome/browser/translate/translate_manager.h |
diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h |
index 5e7f089563c280c21431e5a8653263ae9a3ba201..9444406fcfe347512cd2ba734f831719215a090c 100644 |
--- a/chrome/browser/translate/translate_manager.h |
+++ b/chrome/browser/translate/translate_manager.h |
@@ -83,7 +83,8 @@ class TranslateManager : public content::NotificationObserver, |
// Used by unit-tests to override the default delay after which the translate |
// script is fetched again from the translation server. |
void set_translate_script_expiration_delay(int delay_ms) { |
- translate_script_expiration_delay_ = delay_ms; |
+ translate_script_expiration_delay_ = |
+ base::TimeDelta::FromMilliseconds(delay_ms); |
} |
// Convenience method to know if a tab is showing a translate infobar. |
@@ -198,9 +199,9 @@ class TranslateManager : public content::NotificationObserver, |
// The JS injected in the page to do the translation. |
std::string translate_script_; |
- // Delay in milli-seconds after which the translate script is fetched again |
+ // Delay after which the translate script is fetched again |
// from the translate server. |
- int translate_script_expiration_delay_; |
+ base::TimeDelta translate_script_expiration_delay_; |
// Set when the translate JS is currently being retrieved. NULL otherwise. |
scoped_ptr<content::URLFetcher> translate_script_request_pending_; |