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

Unified Diff: chrome/browser/ui/views/location_bar/keyword_hint_view.cc

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: fix windows 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
Index: chrome/browser/ui/views/location_bar/keyword_hint_view.cc
diff --git a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
index 041b468bae3f2fda65c03d6d429ac4d40e1226cc..cab39f00abdc1fe161f74053effa3788a2b69803 100644
--- a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
+++ b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
@@ -37,7 +37,8 @@ class TabKeyBubbleView : public views::Label {
};
TabKeyBubbleView::TabKeyBubbleView(const gfx::FontList& font_list)
- : views::Label(l10n_util::GetStringUTF16(IDS_APP_TAB_KEY), font_list) {
+ : views::Label(l10n_util::GetStringUTF16(IDS_APP_TAB_KEY),
+ views::Label::CustomFont{font_list}) {
SetBorder(views::CreateEmptyBorder(
gfx::Insets(LocationBarView::kBubbleVerticalPadding, 0)));
}
@@ -144,7 +145,8 @@ const char* KeywordHintView::GetClassName() const {
views::Label* KeywordHintView::CreateLabel(const gfx::FontList& font_list,
SkColor text_color,
SkColor background_color) {
- views::Label* label = new views::Label(base::string16(), font_list);
+ views::Label* label =
+ new views::Label(base::string16(), views::Label::CustomFont{font_list});
label->SetEnabledColor(text_color);
label->SetBackgroundColor(background_color);
AddChildView(label);

Powered by Google App Engine
This is Rietveld 408576698