aboutsummaryrefslogtreecommitdiff
path: root/third_party/chromium/base/strings/string_number_conversions.h
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2016-07-18 16:08:56 -0700
committerLuis Hector Chavez <lhchavez@google.com>2016-07-22 18:21:09 +0000
commit17f710e0eccdb78996c6e3ee65b03d43c18e1d8b (patch)
tree8ad4bf145f87a298e2e50688814c8a664577d635 /third_party/chromium/base/strings/string_number_conversions.h
parent637be7990843742d7ac6910ea909dcb09e9df175 (diff)
downloadlibweave-17f710e0eccdb78996c6e3ee65b03d43c18e1d8b.tar.gz
libweave: Update libchrome APIs to r405848
The new libchrome has been ported from Chromium and some APIs have changed. Make necessary changes at call sites. Notable changes are: - base::Bind() now explicitly disallows captures in lambdas (which was never allowed in the style guide). - base::ListValue::iterator now exposes std::unique_ptr<base::Value> instead of raw base::Value*. BUG=29104761 TEST=All tests in libweave_test pass on dragonboard-eng build TEST=make testall Change-Id: Ifb2d4f83f9f92b8ded5f12ac1c622e8ab5549b7d Reviewed-on: https://weave-review.googlesource.com/4185 Reviewed-by: Robert Ginda <rginda@google.com>
Diffstat (limited to 'third_party/chromium/base/strings/string_number_conversions.h')
-rw-r--r--third_party/chromium/base/strings/string_number_conversions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/chromium/base/strings/string_number_conversions.h b/third_party/chromium/base/strings/string_number_conversions.h
index af0faa6..49bb08b 100644
--- a/third_party/chromium/base/strings/string_number_conversions.h
+++ b/third_party/chromium/base/strings/string_number_conversions.h
@@ -24,6 +24,14 @@
// Please do not add "convenience" functions for converting strings to integers
// that return the value and ignore success/failure. That encourages people to
// write code that doesn't properly handle the error conditions.
+//
+// DO NOT use these functions in any UI unless it's NOT localized on purpose.
+// Instead, use base::MessageFormatter for a complex message with numbers
+// (integer, float, double) embedded or base::Format{Number,Double,Percent} to
+// just format a single number/percent. Note that some languages use native
+// digits instead of ASCII digits while others use a group separator or decimal
+// point different from ',' and '.'. Using these functions in the UI would lead
+// numbers to be formatted in a non-native way.
// ----------------------------------------------------------------------------
namespace base {