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

Unified Diff: third_party/WebKit/Source/core/inspector/V8InspectorString.h

Issue 2866213002: Roll third_party/inspector_protocol to efefa86c3183d307f0a0e53bf568fe57c5b58849 (Closed)
Patch Set: Created 3 years, 7 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 | « content/browser/devtools/protocol_string.h ('k') | third_party/inspector_protocol/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/V8InspectorString.h
diff --git a/third_party/WebKit/Source/core/inspector/V8InspectorString.h b/third_party/WebKit/Source/core/inspector/V8InspectorString.h
index d467cd884f3899d2c73f7dc58b9d523a49606811..8b27bac3d6b3595458612746122a337c21655423 100644
--- a/third_party/WebKit/Source/core/inspector/V8InspectorString.h
+++ b/third_party/WebKit/Source/core/inspector/V8InspectorString.h
@@ -11,6 +11,7 @@
#include "wtf/Assertions.h"
#include "wtf/text/StringBuilder.h"
#include "wtf/text/StringHash.h"
+#include "wtf/text/StringToNumber.h"
#include "wtf/text/StringView.h"
#include "wtf/text/WTFString.h"
@@ -45,6 +46,9 @@ class CORE_EXPORT StringUtil {
static String fromDouble(double number) {
return Decimal::FromDouble(number).ToString();
}
+ static double toDouble(const char* s, size_t len, bool* ok) {
+ return WTF::CharactersToDouble(reinterpret_cast<const LChar*>(s), len, ok);
+ }
static size_t find(const String& s, const char* needle) {
return s.Find(needle);
}
« no previous file with comments | « content/browser/devtools/protocol_string.h ('k') | third_party/inspector_protocol/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698