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

Unified Diff: components/ui_devtools/string_util.cc

Issue 2490473004: [DevTools] Roll third_party/inspector_protocol to e23134c5aa6131e5a3a3afbefce255becce3a3bd. (Closed)
Patch Set: ui_devtools Created 4 years, 1 month 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 | « components/ui_devtools/string_util.h ('k') | third_party/WebKit/Source/core/inspector/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_devtools/string_util.cc
diff --git a/components/ui_devtools/string_util.cc b/components/ui_devtools/string_util.cc
index 004d8022b9a6a7e58b79d16a9c94c5b7a8824ab6..0b936a38cf25295584dfe5de91edded670d54014 100644
--- a/components/ui_devtools/string_util.cc
+++ b/components/ui_devtools/string_util.cc
@@ -11,11 +11,12 @@ namespace ui {
namespace devtools {
namespace protocol {
-std::unique_ptr<Value> parseJSON(const String& string) {
+// static
+std::unique_ptr<Value> StringUtil::parseJSON(const String& string) {
DCHECK(base::IsStringUTF8(string));
// TODO(mhashmi): 16-bit strings need to be handled
- return parseJSON(reinterpret_cast<const uint8_t*>(&string[0]),
- string.length());
+ return parseJSONCharacters(reinterpret_cast<const uint8_t*>(&string[0]),
+ string.length());
};
} // namespace protocol
« no previous file with comments | « components/ui_devtools/string_util.h ('k') | third_party/WebKit/Source/core/inspector/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698