| Index: ui/devtools/StringUtil.cc
|
| diff --git a/ui/devtools/StringUtil.cc b/ui/devtools/StringUtil.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ac51e567ea40421954cab2bd262b7614423083a8
|
| --- /dev/null
|
| +++ b/ui/devtools/StringUtil.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/devtools/StringUtil.h"
|
| +
|
| +#include "ui/devtools/Protocol.h"
|
| +
|
| +namespace ui {
|
| +namespace devtools {
|
| +namespace protocol {
|
| +
|
| +std::unique_ptr<Value> parseJSON(const String& string) {
|
| + return parseJSON(reinterpret_cast<const uint8_t*>(&string[0]),
|
| + string.length());
|
| +};
|
| +
|
| +} // namespace protocol
|
| +} // namespace ws
|
| +} // namespace ui
|
|
|