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

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

Issue 2901763002: Revert of Remove uses of FontList::Derive*(..) in views payments dialogs. (Closed)
Patch Set: 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 1a674cb8f3d50c6ccbfddc5914b51c7592360c84..ed9fa979e2082c5156a6ae02a4d36c101255abf8 100644
--- a/chrome/browser/ui/views/payments/payment_method_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_method_view_controller.cc
@@ -13,7 +13,6 @@
#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"
@@ -117,8 +116,9 @@
}
if (!instrument_->IsCompleteForPayment()) {
std::unique_ptr<views::Label> missing_info_label =
- base::MakeUnique<views::Label>(instrument_->GetMissingInfoLabel(),
- CONTEXT_DEPRECATED_SMALL);
+ base::MakeUnique<views::Label>(instrument_->GetMissingInfoLabel());
+ missing_info_label->SetFontList(
+ missing_info_label->GetDefaultFontList().DeriveWithSizeDelta(-1));
missing_info_label->SetEnabledColor(
missing_info_label->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_LinkEnabled));

Powered by Google App Engine
This is Rietveld 408576698