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

Unified Diff: components/translate/core/browser/translate_script.cc

Issue 2429873002: fix translate breakage under de_DE.UTF8 and other locale by avoiding locale sensitve formatting for… (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_script.cc
diff --git a/components/translate/core/browser/translate_script.cc b/components/translate/core/browser/translate_script.cc
index ca39852435ad0bd8668ddbb3b442682da7aa2969..30710f466b712074ec94267ea29c3be5253e1888 100644
--- a/components/translate/core/browser/translate_script.cc
+++ b/components/translate/core/browser/translate_script.cc
@@ -145,7 +145,7 @@ void TranslateScript::OnScriptFetchComplete(
server_params = params[kServerParams];
}
base::StringAppendF(
- &data_, "var gtTimeInfo = {'fetchStart': %f, 'fetchEnd': %f};\n",
+ &data_, "var gtTimeInfo = {'fetchStart': %0.f, 'fetchEnd': %0.f};\n",
script_fetch_start_time_, base::Time::Now().ToJsTime());
base::StringAppendF(&data_, "var serverParams = '%s';\n",
server_params.c_str());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698