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

Unified Diff: components/translate/core/browser/resources/translate.js

Issue 2108053004: add code to propagate finch config TranslateServerStudy server_params to translate element code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove header changes and unnessary initialization Created 4 years, 4 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
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 fb59e6601b97f3558e04db5dab758d9b98149dec..79c579342531c9bce86a66ca16d3e7a6db98738c 100644
--- a/components/translate/core/browser/resources/translate.js
+++ b/components/translate/core/browser/resources/translate.js
@@ -258,12 +258,15 @@ cr.googleTranslate = (function() {
lib = google.translate.TranslateService({
// translateApiKey is predefined by translate_script.cc.
'key': translateApiKey,
+ 'serverParams': serverParams,
'useSecureConnection': true
});
translateApiKey = undefined;
+ serverParams = undefined;
} catch (err) {
errorCode = ERROR['INITIALIZATION_ERROR'];
translateApiKey = undefined;
+ serverParams = undefined;
return;
}
// The TranslateService is not available immediately as it needs to start

Powered by Google App Engine
This is Rietveld 408576698