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

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

Issue 2846113002: Roll third_party/inspector_protocol to efefa86c3183d307f0a0e53bf568fe57c5b58849 (Closed)
Patch Set: Created 3 years, 8 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
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 bb585ccf1d45255ff2e307514741b22b8eeafb7b..08bbb3c76da54f9f627f40074dd6d393d555032c 100644
--- a/third_party/WebKit/Source/core/inspector/V8InspectorString.h
+++ b/third_party/WebKit/Source/core/inspector/V8InspectorString.h
@@ -12,6 +12,7 @@
#include "platform/wtf/Assertions.h"
#include "platform/wtf/text/StringBuilder.h"
#include "platform/wtf/text/StringHash.h"
+#include "platform/wtf/text/StringToNumber.h"
#include "platform/wtf/text/StringView.h"
#include "platform/wtf/text/WTFString.h"
#include "v8/include/v8-inspector.h"
@@ -44,6 +45,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);
}

Powered by Google App Engine
This is Rietveld 408576698