Index: ui/base/cursor/ozone/bitmap_cursor_factory_ozone.cc |
diff --git a/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.cc b/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.cc |
index 394ec7ab44503c6b0edbc44f7a3f60f8c104af4d..9787bd14b2e4341ec3b51f9e951f5a06143a23b6 100644 |
--- a/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.cc |
+++ b/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.cc |
@@ -41,7 +41,7 @@ scoped_refptr<BitmapCursorOzone> BitmapCursorFactoryOzone::GetBitmapCursor( |
} |
PlatformCursor BitmapCursorFactoryOzone::GetDefaultCursor(int type) { |
- return GetDefaultCursorInternal(type); |
+ return GetDefaultCursorInternal(type).get(); |
} |
PlatformCursor BitmapCursorFactoryOzone::CreateImageCursor( |
@@ -69,9 +69,9 @@ BitmapCursorFactoryOzone::GetDefaultCursorInternal(int type) { |
// Create new image cursor from default aura bitmap for this type. We hold a |
// ref forever because clients do not do refcounting for default cursors. |
scoped_refptr<BitmapCursorOzone> cursor = CreateDefaultBitmapCursor(type); |
- if (!cursor && type != kCursorPointer) |
+ if (!cursor.get() && type != kCursorPointer) |
cursor = GetDefaultCursorInternal(kCursorPointer); |
- DCHECK(cursor) << "Failed to load default cursor bitmap"; |
+ DCHECK(cursor.get()) << "Failed to load default cursor bitmap"; |
default_cursors_[type] = cursor; |
} |