Commit f5167883 authored by palmer@chromium.org's avatar palmer@chromium.org

When translating a page, get the code and translation via HTTPS.

For some reason, the error reporting page doesn't work over HTTPS yet.
That's a separate bug, and when it is fixed we'll fix the last http: URL in
this file.

BUG=112236
TEST=browser_tests: TranslateManagerTest.*; translation still works, and reporting a translation error still works

Review URL: http://codereview.chromium.org/9320015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120113 0039d316-1c4b-4281-b951-d872f2087c98
parent 06c694d0
......@@ -150,14 +150,15 @@ const LanguageCodeSynonym kLanguageCodeSynonyms[] = {
};
const char* const kTranslateScriptURL =
"http://translate.google.com/translate_a/element.js?"
"https://translate.google.com/translate_a/element.js?"
"cb=cr.googleTranslate.onTranslateElementLoad";
const char* const kTranslateScriptHeader =
"Google-Translate-Element-Mode: library";
const char* const kReportLanguageDetectionErrorURL =
// TODO(palmer): bug 112236. Make this https://.
"http://translate.google.com/translate_error";
const char* const kLanguageListFetchURL =
"http://translate.googleapis.com/translate_a/l?client=chrome&cb=sl";
"https://translate.googleapis.com/translate_a/l?client=chrome&cb=sl";
const int kMaxRetryLanguageListFetch = 5;
const int kTranslateScriptExpirationDelayDays = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment