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

Unified Diff: ash/system/status_area_widget_delegate.cc

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 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 | « ash/system/session/logout_button_tray.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/status_area_widget_delegate.cc
diff --git a/ash/system/status_area_widget_delegate.cc b/ash/system/status_area_widget_delegate.cc
index 9a969403b3db218449e96f7fbe51e1669f6250b4..c1feef349f51ea4311de332160d42655ab1ecbd7 100644
--- a/ash/system/status_area_widget_delegate.cc
+++ b/ash/system/status_area_widget_delegate.cc
@@ -175,7 +175,7 @@ void StatusAreaWidgetDelegate::SetBorderOnChild(views::View* child,
bool extend_border_to_edge) {
// Tray views are laid out right-to-left or bottom-to-top.
const bool horizontal_alignment = IsHorizontalAlignment(alignment_);
- const int padding = (GetShelfConstant(SHELF_SIZE) - kTrayItemSize) / 2;
+ const int padding = (kShelfSize - kTrayItemSize) / 2;
const int top_edge = horizontal_alignment ? padding : 0;
const int left_edge = horizontal_alignment ? 0 : padding;
« no previous file with comments | « ash/system/session/logout_button_tray.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698