Index: chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc |
diff --git a/chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc b/chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc |
index 866e14da134370af8b22f86e043b912ca7e42a1a..0a16e496606469b6584851e84c71553d0dadaf12 100644 |
--- a/chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc |
+++ b/chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc |
@@ -76,9 +76,7 @@ void StoreDigest(std::vector<uint8_t>* digest, |
const bool is_binary = value->GetAsBinary(&binary); |
EXPECT_TRUE(is_binary) << "Unexpected value in StoreDigest"; |
if (is_binary) { |
- const uint8_t* const binary_begin = |
- reinterpret_cast<const uint8_t*>(binary->GetBuffer()); |
- digest->assign(binary_begin, binary_begin + binary->GetSize()); |
+ digest->assign(binary->GetBlob().begin(), binary->GetBlob().end()); |
} |
callback.Run(); |