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

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

Issue 9215005: Revert 117824 - Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/task_manager/task_manager.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_manager.h
===================================================================
--- chrome/browser/translate/translate_manager.h (revision 117824)
+++ chrome/browser/translate/translate_manager.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -83,8 +83,7 @@
// 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_ =
- base::TimeDelta::FromMilliseconds(delay_ms);
+ translate_script_expiration_delay_ = delay_ms;
}
// Convenience method to know if a tab is showing a translate infobar.
@@ -199,9 +198,9 @@
// The JS injected in the page to do the translation.
std::string translate_script_;
- // Delay after which the translate script is fetched again
+ // Delay in milli-seconds after which the translate script is fetched again
// from the translate server.
- base::TimeDelta translate_script_expiration_delay_;
+ int translate_script_expiration_delay_;
// Set when the translate JS is currently being retrieved. NULL otherwise.
scoped_ptr<content::URLFetcher> translate_script_request_pending_;
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698