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

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

Issue 10382144: Change SetImage, SetBackground, and SetToggledImage to take in a gfx::ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 75760dfc1ed3c3efa131f8ff6561a377ae962ffe..ca9c65224b79e06351e711c20a8ad03e066aa3e0 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -602,7 +602,7 @@ void LocationBarView::Layout() {
} else {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
selected_keyword_view_->SetImage(
- *rb.GetBitmapNamed(IDR_OMNIBOX_SEARCH));
+ *rb.GetImageSkiaNamed(IDR_OMNIBOX_SEARCH));
selected_keyword_view_->set_is_extension_icon(false);
}
}
@@ -873,7 +873,7 @@ void LocationBarView::OnAutocompleteAccept(
void LocationBarView::OnChanged() {
location_icon_view_->SetImage(
- ui::ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
location_entry_->GetIcon()));
location_icon_view_->ShowTooltip(!GetLocationEntry()->IsEditingOrEmpty());

Powered by Google App Engine
This is Rietveld 408576698