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

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase 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: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index a8220bc7a0771f400516dfc07091f7e35abf86ca..bce66ff613fc8c5f96830bc8a77c8f21d89275dd 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -86,9 +86,7 @@ BubbleFrameView::BubbleFrameView(const gfx::Insets& title_margins,
close_button_clicked_(false) {
AddChildView(title_icon_);
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- title_ = new Label(base::string16(),
- rb.GetFontListWithDelta(ui::kTitleFontSizeDelta));
+ title_ = new Label(base::string16(), typography::CONTEXT_DIALOG_TITLE);
title_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
title_->set_collapse_when_hidden(true);
title_->SetVisible(false);

Powered by Google App Engine
This is Rietveld 408576698