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, |