Index: ipc/ipc_message_utils.cc |
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc |
index fb45218bff3da682a4af16a16b0a62d5ac4c637a..e7d8747ff5767dc054e2c7f84117716a6a5567a0 100644 |
--- a/ipc/ipc_message_utils.cc |
+++ b/ipc/ipc_message_utils.cc |
@@ -110,9 +110,7 @@ void GetValueSize(base::PickleSizer* sizer, |
break; |
} |
case base::Value::Type::BINARY: { |
- const base::BinaryValue* binary = |
- static_cast<const base::BinaryValue*>(value); |
- sizer->AddData(static_cast<int>(binary->GetSize())); |
+ sizer->AddData(static_cast<int>(value->GetSize())); |
break; |
} |
case base::Value::Type::DICTIONARY: { |
@@ -180,9 +178,7 @@ void WriteValue(base::Pickle* m, const base::Value* value, int recursion) { |
break; |
} |
case base::Value::Type::BINARY: { |
- const base::BinaryValue* binary = |
- static_cast<const base::BinaryValue*>(value); |
- m->WriteData(binary->GetBuffer(), static_cast<int>(binary->GetSize())); |
+ m->WriteData(value->GetBuffer(), static_cast<int>(value->GetSize())); |
break; |
} |
case base::Value::Type::DICTIONARY: { |