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

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

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 11 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 dbd5b1196b07eac545638be2e1b5b55c67e1ba09..4f0d8c8fba410d9ce234e6bcd2603374bfc1dc59 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
@@ -5,6 +5,7 @@
#import "chrome/browser/ui/cocoa/location_bar/save_credit_card_decoration.h"
#include "chrome/app/chrome_command_ids.h"
+#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/command_updater.h"
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util_mac.h"
@@ -12,7 +13,6 @@
#include "ui/gfx/color_palette.h"
#include "ui/gfx/image/image_skia_util_mac.h"
#include "ui/gfx/paint_vector_icon.h"
-#include "ui/gfx/vector_icons_public.h"
SaveCreditCardDecoration::SaveCreditCardDecoration(
CommandUpdater* command_updater)
@@ -25,8 +25,8 @@ void SaveCreditCardDecoration::SetIcon(bool locationBarIsDark) {
SkColor theColor = theColor =
locationBarIsDark ? SK_ColorWHITE : gfx::kChromeIconGrey;
- SetImage(NSImageFromImageSkia(gfx::CreateVectorIcon(
- gfx::VectorIconId::CREDIT_CARD, 16, theColor)));
+ SetImage(NSImageFromImageSkia(
+ gfx::CreateVectorIcon(kCreditCardIcon, 16, theColor)));
}
NSPoint SaveCreditCardDecoration::GetBubblePointInFrame(NSRect frame) {

Powered by Google App Engine
This is Rietveld 408576698