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

Unified Diff: chrome/browser/ui/webui/chromeos/login/network_dropdown.cc

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 years, 7 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/webui/chromeos/login/network_dropdown.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/network_dropdown.cc b/chrome/browser/ui/webui/chromeos/login/network_dropdown.cc
index 88395726ee9b25c0727543db85e6a0a1b87e201e..e18a15b8a300b8c548acf28aeabaf62e3f4fe922 100644
--- a/chrome/browser/ui/webui/chromeos/login/network_dropdown.cc
+++ b/chrome/browser/ui/webui/chromeos/login/network_dropdown.cc
@@ -102,7 +102,8 @@ base::ListValue* NetworkMenuWebUI::ConvertMenuModel(ui::MenuModel* model) {
item->SetBoolean("enabled", model->IsEnabledAt(i));
const gfx::FontList* font_list = model->GetLabelFontListAt(i);
if (font_list)
- item->SetBoolean("bold", font_list->GetFontStyle() == gfx::Font::BOLD);
+ item->SetBoolean("bold",
+ font_list->GetFontWeight() == gfx::Font::Weight::BOLD);
}
if (type == ui::MenuModel::TYPE_SUBMENU)
item->Set("sub", ConvertMenuModel(model->GetSubmenuModelAt(i)));

Powered by Google App Engine
This is Rietveld 408576698