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

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

Issue 2910153002: Remove views::Label::SetDisabledColor(). Replace with typography colors. (Closed)
Patch Set: rebase for r476345 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/order_summary_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/order_summary_view_controller.cc b/chrome/browser/ui/views/payments/order_summary_view_controller.cc
index 731ca2f5ef99c9ef7cedf836194c3d18df85aa7a..fff328276b9d44bb9e542905f0f38e9807701e21 100644
--- a/chrome/browser/ui/views/payments/order_summary_view_controller.cc
+++ b/chrome/browser/ui/views/payments/order_summary_view_controller.cc
@@ -79,11 +79,7 @@ std::unique_ptr<views::View> CreateLineItemView(const base::string16& label,
amount_text = CreateMediumLabel(amount);
} else {
label_text = base::MakeUnique<views::Label>(label);
- currency_text = base::MakeUnique<views::Label>(currency);
- currency_text->SetDisabledColor(
- currency_text->GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_LabelDisabledColor));
- currency_text->SetEnabled(false);
+ currency_text = CreateHintLabel(currency);
amount_text = base::MakeUnique<views::Label>(amount);
}
amount_text->set_id(static_cast<int>(amount_label_id));

Powered by Google App Engine
This is Rietveld 408576698