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

Unified Diff: content/child/v8_value_converter_impl.cc

Issue 2065793002: Return a unique_ptr from BinaryValue::CreateWithCopiedBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android and CrOS Created 4 years, 6 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: content/child/v8_value_converter_impl.cc
diff --git a/content/child/v8_value_converter_impl.cc b/content/child/v8_value_converter_impl.cc
index d0e084cf8e8a050283d94a710d9e2dd5266fa7bc..89378a8cb9dcfd1396f11f938e61ab7bd9c76d4d 100644
--- a/content/child/v8_value_converter_impl.cc
+++ b/content/child/v8_value_converter_impl.cc
@@ -515,8 +515,7 @@ std::unique_ptr<base::Value> V8ValueConverterImpl::FromV8ArrayBuffer(
}
if (data)
- return base::WrapUnique(
- base::BinaryValue::CreateWithCopiedBuffer(data, length));
+ return base::BinaryValue::CreateWithCopiedBuffer(data, length);
else
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698