Index: extensions/browser/api/declarative/declarative_api.cc |
diff --git a/extensions/browser/api/declarative/declarative_api.cc b/extensions/browser/api/declarative/declarative_api.cc |
index b2393b2c9a375c9b8105b9942482315c60fb85dc..863f92edd146366231b0c887aaed1a7889d5b589 100644 |
--- a/extensions/browser/api/declarative/declarative_api.cc |
+++ b/extensions/browser/api/declarative/declarative_api.cc |
@@ -42,7 +42,7 @@ void ConvertBinaryDictionaryValuesToBase64(base::DictionaryValue* dict); |
// Encodes |binary| as base64 and returns a new StringValue populated with the |
// encoded string. |
std::unique_ptr<base::Value> ConvertBinaryToBase64(base::Value* binary) { |
- std::string binary_data = std::string(binary->GetBuffer(), binary->GetSize()); |
+ std::string binary_data(binary->GetBlob().data(), binary->GetBlob().size()); |
std::string data64; |
base::Base64Encode(binary_data, &data64); |
return std::unique_ptr<base::Value>(new base::Value(data64)); |