Index: ash/desktop_background/desktop_background_controller_unittest.cc |
diff --git a/ash/desktop_background/desktop_background_controller_unittest.cc b/ash/desktop_background/desktop_background_controller_unittest.cc |
index 609ea1454ad626b35f792c43561ed9a2d1596310..fa2e2a44e4a5ba0684bea236356f6056ea7f577e 100644 |
--- a/ash/desktop_background/desktop_background_controller_unittest.cc |
+++ b/ash/desktop_background/desktop_background_controller_unittest.cc |
@@ -94,8 +94,7 @@ class DesktopBackgroundControllerTest : public test::AshTestBase { |
// Creates an image of size |size|. |
gfx::ImageSkia CreateImage(int width, int height, SkColor color) { |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height); |
- bitmap.allocPixels(); |
+ bitmap.allocN32Pixels(width, height); |
bitmap.eraseColor(color); |
gfx::ImageSkia image = gfx::ImageSkia::CreateFrom1xBitmap(bitmap); |
return image; |