| Index: chrome/browser/ui/views/sad_tab_view.cc
|
| diff --git a/chrome/browser/ui/views/sad_tab_view.cc b/chrome/browser/ui/views/sad_tab_view.cc
|
| index f8a48a96b6912a4d48ceb10feb019b804606bd1a..d7141efeeeb9993231b1a5d8dd934f80674fd699 100644
|
| --- a/chrome/browser/ui/views/sad_tab_view.cc
|
| +++ b/chrome/browser/ui/views/sad_tab_view.cc
|
| @@ -30,6 +30,15 @@ static const SkColor kLinkColor = SK_ColorWHITE;
|
| static const SkColor kBackgroundColor = SkColorSetRGB(35, 48, 64);
|
| static const SkColor kBackgroundEndColor = SkColorSetRGB(35, 48, 64);
|
|
|
| +// Font size correction.
|
| +#if defined(CROS_FONTS_USING_BCI)
|
| +static const int kTitleFontSizeDelta = 1;
|
| +static const int kMessageFontSizeDelta = 0;
|
| +#else
|
| +static const int kTitleFontSizeDelta = 2;
|
| +static const int kMessageFontSizeDelta = 1;
|
| +#endif
|
| +
|
| // static
|
| SkBitmap* SadTabView::sad_tab_bitmap_ = NULL;
|
| gfx::Font* SadTabView::title_font_ = NULL;
|
| @@ -133,9 +142,10 @@ void SadTabView::InitClass() {
|
| if (!initialized) {
|
| ResourceBundle& rb = ResourceBundle::GetSharedInstance();
|
| title_font_ = new gfx::Font(
|
| - rb.GetFont(ResourceBundle::BaseFont).DeriveFont(2, gfx::Font::BOLD));
|
| + rb.GetFont(ResourceBundle::BaseFont).DeriveFont(kTitleFontSizeDelta,
|
| + gfx::Font::BOLD));
|
| message_font_ = new gfx::Font(
|
| - rb.GetFont(ResourceBundle::BaseFont).DeriveFont(1));
|
| + rb.GetFont(ResourceBundle::BaseFont).DeriveFont(kMessageFontSizeDelta));
|
| sad_tab_bitmap_ = rb.GetBitmapNamed(IDR_SAD_TAB);
|
|
|
| title_ = l10n_util::GetString(IDS_SAD_TAB_TITLE);
|
|
|