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

Unified Diff: content/common/android/gin_java_bridge_value.h

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/common/android/gin_java_bridge_value.h
diff --git a/content/common/android/gin_java_bridge_value.h b/content/common/android/gin_java_bridge_value.h
index b5090c3ea17948c899e9bbb6e6774d3e86918c7f..1cd92d8b76734c9f6a063b23239851e73df0d660 100644
--- a/content/common/android/gin_java_bridge_value.h
+++ b/content/common/android/gin_java_bridge_value.h
@@ -58,7 +58,7 @@ class GinJavaBridgeValue {
private:
explicit GinJavaBridgeValue(Type type);
explicit GinJavaBridgeValue(const base::BinaryValue* value);
- base::BinaryValue* SerializeToBinaryValue();
+ std::unique_ptr<base::BinaryValue> SerializeToBinaryValue();
base::Pickle pickle_;

Powered by Google App Engine
This is Rietveld 408576698