Index: chrome/browser/plugins/plugin_power_saver_browsertest.cc |
diff --git a/chrome/browser/plugins/plugin_power_saver_browsertest.cc b/chrome/browser/plugins/plugin_power_saver_browsertest.cc |
index 374a337e75f2f359d6c8c9a260c9775a880b33d2..3cd7949debd300bcaebeb9b1665129a6088a8bd1 100644 |
--- a/chrome/browser/plugins/plugin_power_saver_browsertest.cc |
+++ b/chrome/browser/plugins/plugin_power_saver_browsertest.cc |
@@ -183,7 +183,7 @@ bool SnapshotMatches(const base::FilePath& reference, const SkBitmap& bitmap) { |
if (w < kComparisonWidth || h < kComparisonHeight) |
return false; |
- int32_t* ref_pixels = reinterpret_cast<int32_t*>(vector_as_array(&decoded)); |
+ int32_t* ref_pixels = reinterpret_cast<int32_t*>(decoded.data()); |
SkAutoLockPixels lock_image(bitmap); |
int32_t* pixels = static_cast<int32_t*>(bitmap.getPixels()); |
@@ -240,8 +240,8 @@ void CompareSnapshotToReference(const base::FilePath& reference, |
ASSERT_TRUE( |
gfx::PNGCodec::EncodeBGRASkBitmap(clipped_bitmap, false, &png_data)); |
ASSERT_EQ(static_cast<int>(png_data.size()), |
- base::WriteFile(reference, reinterpret_cast<const char*>( |
- vector_as_array(&png_data)), |
+ base::WriteFile(reference, |
+ reinterpret_cast<const char*>(png_data.data()), |
png_data.size())); |
} |