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

Unified Diff: chrome/browser/translate/translate_manager.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: chrome/browser/translate/translate_manager.cc
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc
index 8fd0c4fb1e170a4990db9d5e225542ba8e1fddd0..ea556e53daf080848ae1bfcd3334c6167ebd34b0 100644
--- a/chrome/browser/translate/translate_manager.cc
+++ b/chrome/browser/translate/translate_manager.cc
@@ -138,7 +138,7 @@ const char* const kReportLanguageDetectionErrorURL =
const char* const kLanguageListFetchURL =
"http://translate.googleapis.com/translate_a/l?client=chrome&cb=sl";
const int kMaxRetryLanguageListFetch = 5;
-const int kTranslateScriptExpirationDelayMS = 24 * 60 * 60 * 1000; // 1 day.
+const int kTranslateScriptExpirationDelayDays = 1;
} // namespace
@@ -450,7 +450,8 @@ bool TranslateManager::IsShowingTranslateInfobar(WebContents* tab) {
TranslateManager::TranslateManager()
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_method_factory_(this)),
- translate_script_expiration_delay_(kTranslateScriptExpirationDelayMS) {
+ translate_script_expiration_delay_(
+ base::TimeDelta::FromDays(kTranslateScriptExpirationDelayDays)) {
notification_registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED,
content::NotificationService::AllSources());
notification_registrar_.Add(this,

Powered by Google App Engine
This is Rietveld 408576698