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

Unified Diff: chrome/browser/ui/views/payments/payment_method_view_controller.cc

Issue 2899653002: Remove uses of FontList::Derive*(..) in views payments dialogs. (Closed)
Patch Set: hate you gcc Created 3 years, 7 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/payments/payment_method_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/payment_method_view_controller.cc b/chrome/browser/ui/views/payments/payment_method_view_controller.cc
index ed9fa979e2082c5156a6ae02a4d36c101255abf8..1a674cb8f3d50c6ccbfddc5914b51c7592360c84 100644
--- a/chrome/browser/ui/views/payments/payment_method_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_method_view_controller.cc
@@ -13,6 +13,7 @@
#include "base/callback_forward.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/ui/views/harmony/chrome_typography.h"
#include "chrome/browser/ui/views/payments/payment_request_dialog_view.h"
#include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
#include "chrome/browser/ui/views/payments/payment_request_row_view.h"
@@ -116,9 +117,8 @@ class PaymentMethodListItem : public payments::PaymentRequestItemList::Item {
}
if (!instrument_->IsCompleteForPayment()) {
std::unique_ptr<views::Label> missing_info_label =
- base::MakeUnique<views::Label>(instrument_->GetMissingInfoLabel());
- missing_info_label->SetFontList(
- missing_info_label->GetDefaultFontList().DeriveWithSizeDelta(-1));
+ base::MakeUnique<views::Label>(instrument_->GetMissingInfoLabel(),
+ CONTEXT_DEPRECATED_SMALL);
missing_info_label->SetEnabledColor(
missing_info_label->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_LinkEnabled));

Powered by Google App Engine
This is Rietveld 408576698