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

Unified Diff: ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc

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
« no previous file with comments | « mojo/common/values_struct_traits.h ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
diff --git a/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc b/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
index e69aecc3444a7860fe0b5b379a9ed7a957ae5337..a2b10dd35bbd6e414f85906cc0ce3f662d15a7dc 100644
--- a/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
+++ b/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
@@ -64,8 +64,8 @@ PP_Var PPB_X509Certificate_Fields::GetFieldAsPPVar(
return StringVar::StringToPPVar(val);
}
case base::Value::Type::BINARY: {
- uint32_t size = static_cast<uint32_t>(value->GetSize());
- const char* buffer = value->GetBuffer();
+ uint32_t size = static_cast<uint32_t>(value->GetBlob().size());
+ const char* buffer = value->GetBlob().data();
PP_Var array_buffer =
PpapiGlobals::Get()->GetVarTracker()->MakeArrayBufferPPVar(size,
buffer);
« no previous file with comments | « mojo/common/values_struct_traits.h ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698