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

Unified Diff: chrome/browser/ui/views/location_bar/star_view.cc

Issue 2348853004: Remove non-md code in location bar (Views). (Closed)
Patch Set: images 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/views/location_bar/star_view.cc
diff --git a/chrome/browser/ui/views/location_bar/star_view.cc b/chrome/browser/ui/views/location_bar/star_view.cc
index aed4c9bc289a99bd654e05dcb82077e30a3ecc9a..6a286d1c44e3203fcd2fb9b7a3dabdc784e6ab21 100644
--- a/chrome/browser/ui/views/location_bar/star_view.cc
+++ b/chrome/browser/ui/views/location_bar/star_view.cc
@@ -16,7 +16,6 @@
#include "chrome/grit/theme_resources.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/vector_icons_public.h"
@@ -66,15 +65,6 @@ views::BubbleDialogDelegateView* StarView::GetBubble() const {
return BookmarkBubbleView::bookmark_bubble();
}
-bool StarView::SetRasterIcon() {
- if (ui::MaterialDesignController::IsModeMaterial())
- return false;
-
- SetImage(ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
- active() ? IDR_STAR_LIT : IDR_STAR));
- return true;
-}
-
gfx::VectorIconId StarView::GetVectorIcon() const {
return active() ? gfx::VectorIconId::LOCATION_BAR_STAR_ACTIVE
: gfx::VectorIconId::LOCATION_BAR_STAR;

Powered by Google App Engine
This is Rietveld 408576698