| Index: third_party/WebKit/Source/modules/nfc/NFC.cpp
|
| diff --git a/third_party/WebKit/Source/modules/nfc/NFC.cpp b/third_party/WebKit/Source/modules/nfc/NFC.cpp
|
| index 5ddc7ec50e0a55f5d0ca3b800fa872b62857dbcf..67715cfd0f8f082ae2fc28264224d06b7523d6b9 100644
|
| --- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
|
| +++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
|
| @@ -178,8 +178,8 @@ struct TypeConverter<mojo::WTFArray<uint8_t>, blink::ScriptValue> {
|
| }
|
|
|
| if (value->IsObject() && !value->IsArrayBuffer()) {
|
| - RefPtr<blink::JSONValue> jsonResult = blink::toJSONValue(scriptValue.context(), value);
|
| - if (jsonResult && (jsonResult->getType() == blink::JSONValue::TypeObject))
|
| + std::unique_ptr<blink::JSONValue> jsonResult = blink::toJSONValue(scriptValue.context(), value);
|
| + if (jsonResult && (jsonResult->type() == blink::JSONValue::TypeObject))
|
| return mojo::WTFArray<uint8_t>::From(jsonResult->toJSONString());
|
| }
|
|
|
|
|