Index: tools/json_schema_compiler/util.cc |
diff --git a/tools/json_schema_compiler/util.cc b/tools/json_schema_compiler/util.cc |
index 983dc6682855f241207249a5247d36aa0da1d818..d1eb2e7414cc1c5941f57a211547f554caf357d0 100644 |
--- a/tools/json_schema_compiler/util.cc |
+++ b/tools/json_schema_compiler/util.cc |
@@ -72,7 +72,7 @@ bool PopulateItem(const base::Value& from, std::vector<char>* out) { |
const base::Value* binary = nullptr; |
if (!from.GetAsBinary(&binary)) |
return false; |
- out->assign(binary->GetBuffer(), binary->GetBuffer() + binary->GetSize()); |
+ *out = binary->GetBlob(); |
return true; |
} |
@@ -82,7 +82,7 @@ bool PopulateItem(const base::Value& from, |
const base::Value* binary = nullptr; |
if (!from.GetAsBinary(&binary)) |
return ReportError(from, base::Value::Type::BINARY, error); |
- out->assign(binary->GetBuffer(), binary->GetBuffer() + binary->GetSize()); |
+ *out = binary->GetBlob(); |
return true; |
} |