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

Unified Diff: chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.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/views/platform_keys_certificate_selector_chromeos.cc
diff --git a/chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.cc b/chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.cc
index 86e5a36f1f3d7ed51076c6ce95902af711f00c9e..0eec89cd8a23b72110dfa8b1d9633959883aa3f0 100644
--- a/chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.cc
+++ b/chrome/browser/ui/views/platform_keys_certificate_selector_chromeos.cc
@@ -47,7 +47,7 @@ void PlatformKeysCertificateSelector::Init() {
new views::StyledLabel(text, nullptr /* no listener */));
views::StyledLabel::RangeStyleInfo bold_style;
- bold_style.font_style = gfx::Font::BOLD;
+ bold_style.weight = gfx::Font::Weight::BOLD;
label->AddStyleRange(gfx::Range(offset, offset + name.size()), bold_style);
CertificateSelector::InitWithText(std::move(label));
}

Powered by Google App Engine
This is Rietveld 408576698