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

Unified Diff: chrome/browser/ui/views/accessibility/invert_bubble_view.cc

Issue 152343006: Clean-up: Replaces obsolete Font/FontList methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 years, 10 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/accessibility/invert_bubble_view.cc
diff --git a/chrome/browser/ui/views/accessibility/invert_bubble_view.cc b/chrome/browser/ui/views/accessibility/invert_bubble_view.cc
index 52c3db17f5b3c539e8032ecebdac7c92e310cfb2..c7445b729934c9514d5922a69ceed30c8627d50d 100644
--- a/chrome/browser/ui/views/accessibility/invert_bubble_view.cc
+++ b/chrome/browser/ui/views/accessibility/invert_bubble_view.cc
@@ -24,9 +24,12 @@
namespace {
-const char kHighContrastExtensionUrl[] = "https://chrome.google.com/webstore/detail/djcfdncoelnlbldjfhinnjlhdjlikmph";
-const char kDarkThemeSearchUrl[] = "https://chrome.google.com/webstore/search-themes/dark";
-const char kLearnMoreUrl[] = "https://groups.google.com/a/googleproductforums.com/d/topic/chrome/Xrco2HsXS-8/discussion";
+const char kHighContrastExtensionUrl[] =
+ "https://chrome.google.com/webstore/detail/djcfdncoelnlbldjfhinnjlhdjlikmph";
+const char kDarkThemeSearchUrl[] =
+ "https://chrome.google.com/webstore/search-themes/dark";
+const char kLearnMoreUrl[] =
+ "https://groups.google.com/a/googleproductforums.com/d/topic/chrome/Xrco2HsXS-8/discussion";
const int kBubbleWidth = 500;
class InvertBubbleView : public views::BubbleDelegateView,
@@ -73,8 +76,7 @@ void InvertBubbleView::Init() {
views::Label* title = new views::Label(
l10n_util::GetStringUTF16(IDS_HIGH_CONTRAST_NOTIFICATION),
- original_font_list.DeriveFontListWithSizeDeltaAndStyle(2,
- gfx::Font::BOLD));
+ original_font_list.Derive(2, gfx::Font::BOLD));
title->SetMultiLine(true);
title->SizeToFit(kBubbleWidth);

Powered by Google App Engine
This is Rietveld 408576698