Index: content/common/android/gin_java_bridge_value.cc |
diff --git a/content/common/android/gin_java_bridge_value.cc b/content/common/android/gin_java_bridge_value.cc |
index e745ce81bca74450bab8300e3fbc37df35ef60db..46d412d0161fb289e1f9c2f65c53c2bbd71d12a7 100644 |
--- a/content/common/android/gin_java_bridge_value.cc |
+++ b/content/common/android/gin_java_bridge_value.cc |
@@ -57,9 +57,9 @@ std::unique_ptr<base::Value> GinJavaBridgeValue::CreateObjectIDValue( |
bool GinJavaBridgeValue::ContainsGinJavaBridgeValue(const base::Value* value) { |
if (!value->IsType(base::Value::Type::BINARY)) |
return false; |
- if (value->GetSize() < sizeof(Header)) |
+ if (value->GetBlob().size() < sizeof(Header)) |
return false; |
- base::Pickle pickle(value->GetBuffer(), value->GetSize()); |
+ base::Pickle pickle(value->GetBlob().data(), value->GetBlob().size()); |
// Broken binary value: payload or header size is wrong |
if (!pickle.data() || pickle.size() - pickle.payload_size() != sizeof(Header)) |
return false; |
@@ -112,7 +112,7 @@ GinJavaBridgeValue::GinJavaBridgeValue(Type type) : |
} |
GinJavaBridgeValue::GinJavaBridgeValue(const base::Value* value) |
- : pickle_(value->GetBuffer(), value->GetSize()) { |
+ : pickle_(value->GetBlob().data(), value->GetBlob().size()) { |
DCHECK(ContainsGinJavaBridgeValue(value)); |
} |