| Index: components/ui_devtools/string_util.h
|
| diff --git a/components/ui_devtools/string_util.h b/components/ui_devtools/string_util.h
|
| index 4efb835380f6a18569a0e54b06ca8fae1f7f9232..d08b8b6f22f68474b50ba3115e63e129d4e8e7bc 100644
|
| --- a/components/ui_devtools/string_util.h
|
| +++ b/components/ui_devtools/string_util.h
|
| @@ -45,6 +45,11 @@ class StringUtil {
|
| static String fromDouble(double number) {
|
| return base::DoubleToString(number);
|
| }
|
| + static double toDouble(const char* s, size_t len, bool* ok) {
|
| + double v = 0.0;
|
| + *ok = base::StringToDouble(std::string(s, len), &v);
|
| + return *ok ? v : 0.0;
|
| + }
|
| static void builderAppend(StringBuilder& builder, const String& s) {
|
| builder.append(s);
|
| }
|
|
|