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

Unified Diff: chrome/browser/translate/translate_manager.cc

Issue 9233018: 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: Rebase onto master. 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 | « chrome/browser/translate/translate_manager.h ('k') | chrome/browser/unload_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/translate/translate_manager.h ('k') | chrome/browser/unload_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698