| Index: chrome/browser/ui/tests/ui_gfx_image_unittest.mm
|
| diff --git a/chrome/browser/ui/tests/ui_gfx_image_unittest.mm b/chrome/browser/ui/tests/ui_gfx_image_unittest.mm
|
| index 8f11203c7d82daee6a06ee5819630be4397ed26a..1e81579c0d4181d0235c3f97a96517c45fb2dfe9 100644
|
| --- a/chrome/browser/ui/tests/ui_gfx_image_unittest.mm
|
| +++ b/chrome/browser/ui/tests/ui_gfx_image_unittest.mm
|
| @@ -18,9 +18,10 @@ class UiGfxImageTest : public CocoaTest {
|
|
|
| TEST_F(UiGfxImageTest, CheckColor) {
|
| gfx::Image image(gfx::test::CreateBitmap(25, 25));
|
| - [image lockFocus];
|
| + NSImage* ns_image = image.ToNSImage();
|
| + [ns_image lockFocus];
|
| NSColor* color = NSReadPixel(NSMakePoint(10, 10));
|
| - [image unlockFocus];
|
| + [ns_image unlockFocus];
|
|
|
| // SkBitmapToNSImage returns a bitmap in the calibrated color space (sRGB),
|
| // while NSReadPixel returns a color in the device color space. Convert back
|
|
|