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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.cc

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase (conflict in layout_delegate.h due to r457774) 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/apps/app_info_dialog/app_info_header_panel.cc
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.cc
index 655ba9374796314726914031e964d97ef422fe8f..013c61cfb6acf30e9503dce5fb35fc37ffe9dd5c 100644
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.cc
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.cc
@@ -22,7 +22,6 @@
#include "net/base/url_util.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
@@ -77,10 +76,8 @@ void AppInfoHeaderPanel::CreateControls() {
vertical_info_container->SetLayoutManager(vertical_container_layout);
AddChildView(vertical_info_container);
- views::Label* app_name_label =
- new views::Label(base::UTF8ToUTF16(app_->name()),
- ui::ResourceBundle::GetSharedInstance().GetFontList(
- ui::ResourceBundle::MediumFont));
+ views::Label* app_name_label = new views::Label(
+ base::UTF8ToUTF16(app_->name()), views::style::CONTEXT_DIALOG_TITLE);
app_name_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
vertical_info_container->AddChildView(app_name_label);

Powered by Google App Engine
This is Rietveld 408576698