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

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

Issue 2899653002: Remove uses of FontList::Derive*(..) in views payments dialogs. (Closed)
Patch Set: self review 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/editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/editor_view_controller.cc b/chrome/browser/ui/views/payments/editor_view_controller.cc
index 5252645cf78a668e946e8be883c40930c3c589e7..2a48072b66785c2b2d2cae1bb87fe0a22457d3c6 100644
--- a/chrome/browser/ui/views/payments/editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/editor_view_controller.cc
@@ -10,6 +10,7 @@
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.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_views_util.h"
@@ -58,11 +59,9 @@ std::unique_ptr<views::View> CreateErrorLabelView(const base::string16& error,
view->SetLayoutManager(layout.release());
std::unique_ptr<views::Label> error_label =
- base::MakeUnique<views::Label>(error);
+ base::MakeUnique<views::Label>(error, CONTEXT_DEPRECATED_SMALL);
error_label->set_id(static_cast<int>(DialogViewID::ERROR_LABEL_OFFSET) +
field.type);
- error_label->SetFontList(
- error_label->GetDefaultFontList().DeriveWithSizeDelta(-1));
error_label->SetEnabledColor(error_label->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_AlertSeverityHigh));

Powered by Google App Engine
This is Rietveld 408576698