Index: base/strings/string_number_conversions.cc |
diff --git a/base/strings/string_number_conversions.cc b/base/strings/string_number_conversions.cc |
index b6b65d2a3bf8ce53dc1fd463006ce1bc88877377..b2ab24028f314ea50fd803738ec39ceef4aadc7f 100644 |
--- a/base/strings/string_number_conversions.cc |
+++ b/base/strings/string_number_conversions.cc |
@@ -372,6 +372,10 @@ bool String16ToIntImpl(const StringPiece16& input, VALUE* output) { |
} // namespace |
+#if defined(STRING_NUMBER_CONVERSIONS_DETECT_RISKY_CONVERSIONS) |
+namespace internal { |
+#endif |
+ |
std::string IntToString(int value) { |
return IntToStringT<std::string, int, unsigned int, true>:: |
IntToString(value); |
@@ -423,6 +427,10 @@ std::string DoubleToString(double value) { |
return std::string(buffer); |
} |
+#if defined(STRING_NUMBER_CONVERSIONS_DETECT_RISKY_CONVERSIONS) |
+} // namespace internal |
+#endif |
+ |
bool StringToInt(const StringPiece& input, int* output) { |
return StringToIntImpl(input, output); |
} |