Index: src/inspector/string-util.cc |
diff --git a/src/inspector/string-util.cc b/src/inspector/string-util.cc |
index e6ad5d0c5b5be8160baf9305eb4993af22f695d1..850aedae51de9a9fff32b08de99797d668dd5d14 100644 |
--- a/src/inspector/string-util.cc |
+++ b/src/inspector/string-util.cc |
@@ -93,19 +93,20 @@ bool stringViewStartsWith(const StringView& string, const char* prefix) { |
namespace protocol { |
-std::unique_ptr<protocol::Value> parseJSON(const StringView& string) { |
+std::unique_ptr<protocol::Value> StringUtil::parseJSON( |
+ const StringView& string) { |
if (!string.length()) return nullptr; |
if (string.is8Bit()) { |
- return protocol::parseJSON(string.characters8(), |
+ return parseJSONCharacters(string.characters8(), |
static_cast<int>(string.length())); |
} |
- return protocol::parseJSON(string.characters16(), |
+ return parseJSONCharacters(string.characters16(), |
static_cast<int>(string.length())); |
} |
-std::unique_ptr<protocol::Value> parseJSON(const String16& string) { |
+std::unique_ptr<protocol::Value> StringUtil::parseJSON(const String16& string) { |
if (!string.length()) return nullptr; |
- return protocol::parseJSON(string.characters16(), |
+ return parseJSONCharacters(string.characters16(), |
static_cast<int>(string.length())); |
} |
@@ -119,7 +120,7 @@ std::unique_ptr<StringBuffer> StringBuffer::create(const StringView& string) { |
// static |
std::unique_ptr<StringBufferImpl> StringBufferImpl::adopt(String16& string) { |
- return wrapUnique(new StringBufferImpl(string)); |
+ return std::unique_ptr<StringBufferImpl>(new StringBufferImpl(string)); |
} |
StringBufferImpl::StringBufferImpl(String16& string) { |