diff options
author | palmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 22:26:26 +0000 |
---|---|---|
committer | palmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 22:26:26 +0000 |
commit | f5167883d8c59a17060f431048a115102c934be1 (patch) | |
tree | 2f31e654b3fb6ee529c580d35f7ba38955fa8fb1 | |
parent | 06c694d0cfa60d007b8f22ccdbc69780c52b6d41 (diff) | |
download | chromium_src-f5167883d8c59a17060f431048a115102c934be1.zip chromium_src-f5167883d8c59a17060f431048a115102c934be1.tar.gz chromium_src-f5167883d8c59a17060f431048a115102c934be1.tar.bz2 |
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
-rw-r--r-- | chrome/browser/translate/translate_manager.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc index 978fcf84..a22b603 100644 --- a/chrome/browser/translate/translate_manager.cc +++ b/chrome/browser/translate/translate_manager.cc @@ -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; |