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

Unified Diff: ui/gfx/platform_font_win.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 | « ui/gfx/icon_util.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/platform_font_win.cc
diff --git a/ui/gfx/platform_font_win.cc b/ui/gfx/platform_font_win.cc
index a4505a3ba3f79cfcbf82431439fb7ebe275a0139..f699e26dee4db1fbf6bb9396e826e608bf4595a6 100644
--- a/ui/gfx/platform_font_win.cc
+++ b/ui/gfx/platform_font_win.cc
@@ -180,9 +180,9 @@ std::string PlatformFontWin::GetLocalizedFontName() const {
// When a font has a localized name for a language matching the system
// locale, GetTextFace() returns the localized name.
- base::win::ScopedSelectObject font(memory_dc, font_ref_->hfont());
+ base::win::ScopedSelectObject font(memory_dc.Get(), font_ref_->hfont());
wchar_t localized_font_name[LF_FACESIZE];
- int length = GetTextFace(memory_dc, arraysize(localized_font_name),
+ int length = GetTextFace(memory_dc.Get(), arraysize(localized_font_name),
&localized_font_name[0]);
if (length <= 0)
return GetFontName();
« no previous file with comments | « ui/gfx/icon_util.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698