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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.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
Index: chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc b/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc
index c20d88ae1e765a52a8017260c1f3e74777719810..b0ef108dd5f6b852efb9e8329605e5ead3d802a5 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc
@@ -122,8 +122,7 @@ void ToolbarActionsBarBubbleViews::Init() {
base::string16 item_list = delegate_->GetItemListText();
if (!item_list.empty()) {
item_list_ = new views::Label(item_list);
- item_list_->SetBorder(
- views::Border::CreateEmptyBorder(0, kListPadding, 0, 0));
+ item_list_->SetBorder(views::CreateEmptyBorder(0, kListPadding, 0, 0));
item_list_->SetMultiLine(true);
item_list_->SizeToFit(width);
item_list_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
« no previous file with comments | « chrome/browser/ui/views/toolbar/app_menu.cc ('k') | chrome/browser/ui/views/website_settings/website_settings_popup_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698