| 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_;
|
|
|