summaryrefslogtreecommitdiffstats
path: root/base/json_writer.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 00:14:28 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 00:14:28 +0000
commit6dce8adece39efbb9ae73aa12ca82d88d98da577 (patch)
treebe636abf2c134ecba3ce7d89f8d90192f5e8987b /base/json_writer.cc
parentb2e01376481b16129cb33f31e931cde9a9cdbb88 (diff)
downloadchromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.zip
chromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.tar.gz
chromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.tar.bz2
Remove the locale parameter from the StringToDouble and
DoubleToString methods and only leave the locale independent methods. It turns out this code is only used in the json code and if people want locale formatting, they should use ICU. Review URL: http://codereview.chromium.org/11423 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/json_writer.cc')
-rw-r--r--base/json_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/json_writer.cc b/base/json_writer.cc
index 4782eb55b..0da2925 100644
--- a/base/json_writer.cc
+++ b/base/json_writer.cc
@@ -58,7 +58,7 @@ void JSONWriter::BuildJSONString(const Value* const node, int depth) {
double value;
bool result = node->GetAsReal(&value);
DCHECK(result);
- std::string real = base::DoubleToString(value, base::LOCALE_INDEPENDENT);
+ std::string real = DoubleToString(value);
// Ensure that the number has a .0 if there's no decimal or 'e'. This
// makes sure that when we read the JSON back, it's interpreted as a
// real rather than an int.