Index: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc |
diff --git a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc |
index 6015a69e3fca3a4d06c8d2d9cf3d362d44e96a9c..83d0e0980d07017562e107d4976f51b1df03fbdb 100644 |
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc |
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc |
@@ -137,10 +137,8 @@ bool ImageIsNearColor(gfx::ImageSkia image, SkColor expected_color) { |
return false; |
} |
- bitmap->lockPixels(); |
gfx::Point center = gfx::Rect(image.size()).CenterPoint(); |
SkColor image_color = bitmap->getColor(center.x(), center.y()); |
- bitmap->unlockPixels(); |
const int kDiff = 3; |
if (std::abs(static_cast<int>(SkColorGetA(image_color)) - |