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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFC.cpp

Issue 2218533002: Backporting JSONValues from protocol::Values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch back to partition allocator Created 4 years, 4 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/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..21c26c12ae87b99d6e1a9460a2cdf27409ca99c8 100644
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
@@ -178,7 +178,7 @@ struct TypeConverter<mojo::WTFArray<uint8_t>, blink::ScriptValue> {
}
if (value->IsObject() && !value->IsArrayBuffer()) {
- RefPtr<blink::JSONValue> jsonResult = blink::toJSONValue(scriptValue.context(), value);
+ std::unique_ptr<blink::JSONValue> jsonResult = blink::toJSONValue(scriptValue.context(), value);
if (jsonResult && (jsonResult->getType() == blink::JSONValue::TypeObject))
return mojo::WTFArray<uint8_t>::From(jsonResult->toJSONString());
}

Powered by Google App Engine
This is Rietveld 408576698