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

Unified Diff: chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm

Issue 117903006: Refactor: Makes menus use gfx::FontList instead of gfx::Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
Index: chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm
diff --git a/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm b/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm
index 0e9033f05da0276e578b49b6e5d7a17dff208cc8..4e8785754b30e22506e0c36954c95e4dd9e8fd2c 100644
--- a/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm
@@ -159,10 +159,11 @@ class ZoomLevelObserver {
[[menuItem representedObject] pointerValue]);
// The section headers in the recent tabs submenu should be bold and black if
- // a font is specified for the items (bold is already applied in the
- // |MenuController| as the font returned by |GetLabelFontAt| is bold).
+ // a font list is specified for the items (bold is already applied in the
+ // |MenuController| as the font list returned by |GetLabelFontListAt| is
+ // bold).
if (model && model == [self recentTabsMenuModel]) {
- if (model->GetLabelFontAt([item tag])) {
+ if (model->GetLabelFontListAt([item tag])) {
DCHECK([menuItem attributedTitle]);
base::scoped_nsobject<NSMutableAttributedString> title(
[[NSMutableAttributedString alloc]

Powered by Google App Engine
This is Rietveld 408576698