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

Unified Diff: mojo/common/values_struct_traits.h

Issue 2841623003: Remove base::Value::Get{Buffer,Size} (Closed)
Patch Set: std::vector::assign instead of std::vector::operator= Created 3 years, 8 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: mojo/common/values_struct_traits.h
diff --git a/mojo/common/values_struct_traits.h b/mojo/common/values_struct_traits.h
index 7d8c2ed72171c09e1c76170fd1b38deac40a6441..c9cd09e07262ee653ca7515b400d8b0f29f83ccf 100644
--- a/mojo/common/values_struct_traits.h
+++ b/mojo/common/values_struct_traits.h
@@ -177,8 +177,8 @@ struct UnionTraits<common::mojom::ValueDataView, base::Value> {
if (!value.GetAsBinary(&binary_value))
NOTREACHED();
return mojo::ConstCArray<uint8_t>(
- binary_value->GetSize(),
- reinterpret_cast<const uint8_t*>(binary_value->GetBuffer()));
+ binary_value->GetBlob().size(),
+ reinterpret_cast<const uint8_t*>(binary_value->GetBlob().data()));
}
static const base::ListValue& list_value(const base::Value& value) {
« no previous file with comments | « media/base/video_frame_metadata.cc ('k') | ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698