Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Unified Diff: ui/gfx/icon_util.cc

Issue 606453002: Remove implicit HANDLE conversions from ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/platform_font_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/icon_util.cc
diff --git a/ui/gfx/icon_util.cc b/ui/gfx/icon_util.cc
index 3dd0781faf0a46c1a52462f494b6f09ce7fe1482..45d688b5fc5e2da48d00985eb7711ffda614cb65 100644
--- a/ui/gfx/icon_util.cc
+++ b/ui/gfx/icon_util.cc
@@ -348,9 +348,9 @@ HICON IconUtil::CreateCursorFromDIB(const gfx::Size& icon_size,
}
HBITMAP old_bitmap = reinterpret_cast<HBITMAP>(
- SelectObject(working_dc, bitmap_handle));
- SetBkMode(working_dc, TRANSPARENT);
- SelectObject(working_dc, old_bitmap);
+ SelectObject(working_dc.Get(), bitmap_handle));
+ SetBkMode(working_dc.Get(), TRANSPARENT);
+ SelectObject(working_dc.Get(), old_bitmap);
base::win::ScopedGDIObject<HBITMAP> mask(
CreateBitmap(icon_size.width(),
« no previous file with comments | « no previous file | ui/gfx/platform_font_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698