Index: chrome/browser/translate/translate_manager.cc |
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc |
index 5c383d86e758da5cd18f23a4a5e42ccb9c90916c..978fcf84c0763ba5353a444a82e07f5bdbfa2b13 100644 |
--- a/chrome/browser/translate/translate_manager.cc |
+++ b/chrome/browser/translate/translate_manager.cc |
@@ -159,7 +159,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 |
@@ -487,7 +487,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, |