Index: components/wallpaper/wallpaper_resizer_unittest.cc |
diff --git a/components/wallpaper/wallpaper_resizer_unittest.cc b/components/wallpaper/wallpaper_resizer_unittest.cc |
index fadf11c3cb7fd3407d52eea13251a19910522381..553f54d9800904e97e019c31de7ad730cf060f4f 100644 |
--- a/components/wallpaper/wallpaper_resizer_unittest.cc |
+++ b/components/wallpaper/wallpaper_resizer_unittest.cc |
@@ -50,9 +50,7 @@ gfx::ImageSkia CreateTestImage(const gfx::Size& size) { |
bool IsColor(const gfx::ImageSkia& image, const uint32_t expect) { |
EXPECT_EQ(image.width(), kTargetWidth); |
EXPECT_EQ(image.height(), kTargetHeight); |
- const SkBitmap* image_bitmap = image.bitmap(); |
- SkAutoLockPixels image_lock(*image_bitmap); |
- return *image_bitmap->getAddr32(0, 0) == expect; |
+ return *image.bitmap()->getAddr32(0, 0) == expect; |
} |
} // namespace |