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

Unified Diff: ui/app_list/views/search_result_actions_view.cc

Issue 2480813003: Reduce views::Border creation verbosity by promoting factory functions (Closed)
Patch Set: fix bad merge Created 4 years, 1 month 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 | « ui/app_list/views/search_box_view.cc ('k') | ui/app_list/views/search_result_tile_item_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_result_actions_view.cc
diff --git a/ui/app_list/views/search_result_actions_view.cc b/ui/app_list/views/search_result_actions_view.cc
index 83b87416f3f14c8ee7db2bdd81049434598eda23..39dabf7906c34ee25af1e9af4b02f4c58eb90da1 100644
--- a/ui/app_list/views/search_result_actions_view.cc
+++ b/ui/app_list/views/search_result_actions_view.cc
@@ -66,7 +66,7 @@ bool SearchResultActionsView::IsValidActionIndex(int action_index) const {
void SearchResultActionsView::CreateImageButton(
const SearchResult::Action& action) {
views::ImageButton* button = new views::ImageButton(this);
- button->SetBorder(views::Border::CreateEmptyBorder(0, 9, 0, 9));
+ button->SetBorder(views::CreateEmptyBorder(0, 9, 0, 9));
button->SetAccessibleName(action.tooltip_text);
button->SetImageAlignment(views::ImageButton::ALIGN_CENTER,
views::ImageButton::ALIGN_MIDDLE);
« no previous file with comments | « ui/app_list/views/search_box_view.cc ('k') | ui/app_list/views/search_result_tile_item_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698