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

Unified Diff: chrome/browser/ui/app_list/search/omnibox_result.cc

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
« no previous file with comments | « chrome/app/vector_icons/zoom_plus.icon ('k') | chrome/browser/ui/autofill/autofill_popup_layout_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/search/omnibox_result.cc
diff --git a/chrome/browser/ui/app_list/search/omnibox_result.cc b/chrome/browser/ui/app_list/search/omnibox_result.cc
index 6d8812af0739605ea62261bb41987247af800d9c..efd3686d3490170303e32e4ab8457b59aa81db63 100644
--- a/chrome/browser/ui/app_list/search/omnibox_result.cc
+++ b/chrome/browser/ui/app_list/search/omnibox_result.cc
@@ -15,9 +15,9 @@
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/omnibox/browser/autocomplete_controller.h"
#include "components/omnibox/browser/autocomplete_match_type.h"
+#include "components/omnibox/browser/vector_icons.h"
#include "ui/app_list/app_list_constants.h"
#include "ui/gfx/paint_vector_icon.h"
-#include "ui/gfx/vector_icons_public.h"
#include "url/gurl.h"
#include "url/url_canon.h"
@@ -168,10 +168,10 @@ void OmniboxResult::UpdateIcon() {
bool is_bookmarked =
bookmark_model && bookmark_model->IsBookmarked(match_.destination_url);
- gfx::VectorIconId icon_id = is_bookmarked ?
- gfx::VectorIconId::OMNIBOX_STAR :
- AutocompleteMatch::TypeToVectorIcon(match_.type);
- SetIcon(gfx::CreateVectorIcon(icon_id, 16, app_list::kIconColor));
+ const gfx::VectorIcon& icon =
+ is_bookmarked ? omnibox::kStarIcon
+ : AutocompleteMatch::TypeToVectorIcon(match_.type);
+ SetIcon(gfx::CreateVectorIcon(icon, 16, app_list::kIconColor));
}
void OmniboxResult::UpdateTitleAndDetails() {
« no previous file with comments | « chrome/app/vector_icons/zoom_plus.icon ('k') | chrome/browser/ui/autofill/autofill_popup_layout_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698