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

Unified Diff: ash/common/system/tray/system_menu_button.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 | « ash/common/system/tray/special_popup_row.cc ('k') | ash/common/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_menu_button.cc
diff --git a/ash/common/system/tray/system_menu_button.cc b/ash/common/system/tray/system_menu_button.cc
index 5931b24ecf99bf9a96afd8bb4b431b79d91e120a..3bd7b58858e8ce631f22824c1373eb56ce15373b 100644
--- a/ash/common/system/tray/system_menu_button.cc
+++ b/ash/common/system/tray/system_menu_button.cc
@@ -30,9 +30,8 @@ SystemMenuButton::SystemMenuButton(views::ButtonListener* listener,
const int horizontal_padding = (kMenuButtonSize - image.width()) / 2;
const int vertical_padding = (kMenuButtonSize - image.height()) / 2;
- SetBorder(
- views::Border::CreateEmptyBorder(vertical_padding, horizontal_padding,
- vertical_padding, horizontal_padding));
+ SetBorder(views::CreateEmptyBorder(vertical_padding, horizontal_padding,
+ vertical_padding, horizontal_padding));
SetTooltipText(l10n_util::GetStringUTF16(accessible_name_id));
« no previous file with comments | « ash/common/system/tray/special_popup_row.cc ('k') | ash/common/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698