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

Unified Diff: ui/app_list/views/app_list_item_view.cc

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 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 | « ui/app_list/test/run_all_unittests.cc ('k') | ui/app_list/views/app_list_main_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_item_view.cc
diff --git a/ui/app_list/views/app_list_item_view.cc b/ui/app_list/views/app_list_item_view.cc
index 6861e13a93eab164707ad3eb7700ccc4a821bdfb..6a4fbb1a9bba415e3ac2072fe16531a4e16ce8af 100644
--- a/ui/app_list/views/app_list_item_view.cc
+++ b/ui/app_list/views/app_list_item_view.cc
@@ -52,16 +52,7 @@ const int kMouseDragUIDelayInMs = 200;
gfx::FontList GetFontList() {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- const gfx::FontList& font_list = rb.GetFontList(kItemTextFontStyle);
-// The font is different on each platform. The font size is adjusted on some
-// platforms to keep a consistent look.
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
- // Reducing the font size by 2 makes it the same as the Windows font size.
- const int kFontSizeDelta = -2;
- return font_list.DeriveWithSizeDelta(kFontSizeDelta);
-#else
- return font_list;
-#endif
+ return rb.GetFontList(kItemTextFontStyle);
}
} // namespace
« no previous file with comments | « ui/app_list/test/run_all_unittests.cc ('k') | ui/app_list/views/app_list_main_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698