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

Unified Diff: chrome/browser/ui/cocoa/location_bar/star_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/star_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/star_decoration.mm b/chrome/browser/ui/cocoa/location_bar/star_decoration.mm
index 8703ebbf2d64c8a57249d7422abf0c4f052783e0..245da9fa651f8b4438823750c6f3de9fb281ea88 100644
--- a/chrome/browser/ui/cocoa/location_bar/star_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/star_decoration.mm
@@ -11,6 +11,7 @@
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
#include "components/strings/grit/components_strings.h"
+#include "components/toolbar/vector_icons.h"
#include "ui/base/l10n/l10n_util_mac.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/gfx/color_palette.h"
@@ -67,7 +68,6 @@ SkColor StarDecoration::GetMaterialIconColor(bool location_bar_is_dark) const {
return starred_ ? gfx::kGoogleBlue500 : gfx::kChromeIconGrey;
}
-gfx::VectorIconId StarDecoration::GetMaterialVectorIconId() const {
- return starred_ ? gfx::VectorIconId::LOCATION_BAR_STAR_ACTIVE
- : gfx::VectorIconId::LOCATION_BAR_STAR;
+const gfx::VectorIcon* StarDecoration::GetMaterialVectorIcon() const {
+ return starred_ ? &toolbar::kStarActiveIcon : &toolbar::kStarIcon;
}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/star_decoration.h ('k') | chrome/browser/ui/cocoa/location_bar/translate_decoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698