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

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

Issue 2348853004: Remove non-md code in location bar (Views). (Closed)
Patch Set: resolve change collision 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..912969be71f7e46cee15bb6c0750dd2d2dce5340 100644
--- a/chrome/browser/ui/views/location_bar/star_view.cc
+++ b/chrome/browser/ui/views/location_bar/star_view.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/ui/views/location_bar/star_view.h"
#include "base/metrics/histogram_macros.h"
-#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/bookmarks/bookmark_stats.h"
#include "chrome/browser/ui/browser.h"
@@ -13,11 +12,8 @@
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h"
#include "chrome/grit/generated_resources.h"
-#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"
StarView::StarView(CommandUpdater* command_updater, Browser* browser)
@@ -66,15 +62,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;
« no previous file with comments | « chrome/browser/ui/views/location_bar/star_view.h ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698