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

Unified Diff: ipc/ipc_message_utils.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 | « extensions/browser/api/socket/socket_api.cc ('k') | media/base/video_frame_metadata.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_utils.cc
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc
index 23cfd1339b5cd2d382a371fa4a29eafdf1bb2f17..9a8630dcc574a7819fb9f38414b66ef65acc5e61 100644
--- a/ipc/ipc_message_utils.cc
+++ b/ipc/ipc_message_utils.cc
@@ -110,7 +110,7 @@ void GetValueSize(base::PickleSizer* sizer,
break;
}
case base::Value::Type::BINARY: {
- sizer->AddData(static_cast<int>(value->GetSize()));
+ sizer->AddData(static_cast<int>(value->GetBlob().size()));
break;
}
case base::Value::Type::DICTIONARY: {
@@ -178,7 +178,8 @@ void WriteValue(base::Pickle* m, const base::Value* value, int recursion) {
break;
}
case base::Value::Type::BINARY: {
- m->WriteData(value->GetBuffer(), static_cast<int>(value->GetSize()));
+ m->WriteData(value->GetBlob().data(),
+ static_cast<int>(value->GetBlob().size()));
break;
}
case base::Value::Type::DICTIONARY: {
« no previous file with comments | « extensions/browser/api/socket/socket_api.cc ('k') | media/base/video_frame_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698