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

Unified Diff: chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.mm

Issue 2375033002: cocoa browser: remove non-MD location bar support (Closed)
Patch Set: fix nits Created 4 years, 3 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/cocoa/location_bar/save_credit_card_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.mm b/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.mm
index 8e31c08c906ee3aa322d768ccc8efd05f7de48a8..dbd5b1196b07eac545638be2e1b5b55c67e1ba09 100644
--- a/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.mm
@@ -22,12 +22,8 @@
SaveCreditCardDecoration::~SaveCreditCardDecoration() {}
void SaveCreditCardDecoration::SetIcon(bool locationBarIsDark) {
- SkColor theColor = gfx::kPlaceholderColor;
- if (ui::MaterialDesignController::IsModeMaterial()) {
- theColor = locationBarIsDark ? SK_ColorWHITE : gfx::kChromeIconGrey;
- } else {
- theColor = SkColorSetRGB(0x96, 0x96, 0x96);
- }
+ SkColor theColor = theColor =
+ locationBarIsDark ? SK_ColorWHITE : gfx::kChromeIconGrey;
SetImage(NSImageFromImageSkia(gfx::CreateVectorIcon(
gfx::VectorIconId::CREDIT_CARD, 16, theColor)));

Powered by Google App Engine
This is Rietveld 408576698