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

Unified Diff: chrome/browser/renderer_preferences_util.cc

Issue 1054243002: Avoid calling the GetSystemMetrics API in the renderer process on Windows to get the scrollbar metr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary include Created 5 years, 9 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 | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_preferences_util.cc
diff --git a/chrome/browser/renderer_preferences_util.cc b/chrome/browser/renderer_preferences_util.cc
index ce174ef34c6375bea36ef73df2423d1df201c96f..f67955e592ecf74941508ffd09b1a5e79e16c4af 100644
--- a/chrome/browser/renderer_preferences_util.cc
+++ b/chrome/browser/renderer_preferences_util.cc
@@ -34,6 +34,7 @@
#if defined(OS_WIN)
#include "base/win/win_util.h"
#include "ui/gfx/platform_font_win.h"
+#include "ui/gfx/win/dpi.h"
brucedawson 2015/04/03 19:42:17 Why is the only addition to this file to add a #in
ananta 2015/04/03 20:16:33 Left over from the previous patch set. Removed. I
#endif
namespace renderer_preferences_util {
@@ -121,31 +122,6 @@ void UpdateFromSystemSettings(content::RendererPreferences* prefs,
prefs->plugin_fullscreen_allowed =
pref_service->GetBoolean(prefs::kFullscreenAllowed);
#endif
-
-#if defined(OS_WIN)
- NONCLIENTMETRICS_XP metrics = {0};
- base::win::GetNonClientMetrics(&metrics);
-
- prefs->caption_font_family_name = metrics.lfCaptionFont.lfFaceName;
- prefs->caption_font_height = gfx::PlatformFontWin::GetFontSize(
- metrics.lfCaptionFont);
-
- prefs->small_caption_font_family_name = metrics.lfSmCaptionFont.lfFaceName;
- prefs->small_caption_font_height = gfx::PlatformFontWin::GetFontSize(
- metrics.lfSmCaptionFont);
-
- prefs->menu_font_family_name = metrics.lfMenuFont.lfFaceName;
- prefs->menu_font_height = gfx::PlatformFontWin::GetFontSize(
- metrics.lfMenuFont);
-
- prefs->status_font_family_name = metrics.lfStatusFont.lfFaceName;
- prefs->status_font_height = gfx::PlatformFontWin::GetFontSize(
- metrics.lfStatusFont);
-
- prefs->message_font_family_name = metrics.lfMessageFont.lfFaceName;
- prefs->message_font_height = gfx::PlatformFontWin::GetFontSize(
- metrics.lfMessageFont);
-#endif
}
} // namespace renderer_preferences_util
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698