Chromium Code Reviews| Index: components/translate/core/browser/resources/translate.js |
| diff --git a/components/translate/core/browser/resources/translate.js b/components/translate/core/browser/resources/translate.js |
| index 79c579342531c9bce86a66ca16d3e7a6db98738c..7dd7568bdaad685bff8a69af4672c29f7c7643d8 100644 |
| --- a/components/translate/core/browser/resources/translate.js |
| +++ b/components/translate/core/browser/resources/translate.js |
| @@ -259,14 +259,17 @@ cr.googleTranslate = (function() { |
| // translateApiKey is predefined by translate_script.cc. |
| 'key': translateApiKey, |
| 'serverParams': serverParams, |
| + 'timeInfo': gtTimeInfo, |
|
groby-ooo-7-16
2016/08/18 22:35:04
key is 'timeInfo' here, 'gtTimeInfo' in test - may
ftang
2016/08/18 23:01:39
the JavaScript variable in the test is gtTimeInfo.
groby-ooo-7-16
2016/08/19 18:20:59
Ah, I see - thank you for the explanation.
ftang
2016/08/19 20:33:23
Acknowledged.
|
| 'useSecureConnection': true |
| }); |
| translateApiKey = undefined; |
| serverParams = undefined; |
| + gtTimeInfo = undefined; |
| } catch (err) { |
| errorCode = ERROR['INITIALIZATION_ERROR']; |
| translateApiKey = undefined; |
| serverParams = undefined; |
| + gtTimeInfo = undefined; |
| return; |
| } |
| // The TranslateService is not available immediately as it needs to start |