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

Unified Diff: ash/common/system/status_area_widget_delegate.cc

Issue 2698213004: Start removing some pre-md constants and related code. (Closed)
Patch Set: actually use the constant Created 3 years, 10 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 | « no previous file | ash/common/system/tray/system_tray_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/status_area_widget_delegate.cc
diff --git a/ash/common/system/status_area_widget_delegate.cc b/ash/common/system/status_area_widget_delegate.cc
index 920c171e6b548496961734f29200dc3804b356a9..26c3ddc3b6bc0d5ca42c6fdf7ce59e1dece821c7 100644
--- a/ash/common/system/status_area_widget_delegate.cc
+++ b/ash/common/system/status_area_widget_delegate.cc
@@ -146,14 +146,10 @@ void StatusAreaWidgetDelegate::UpdateLayout() {
views::ColumnSet* columns = layout->AddColumnSet(0);
if (IsHorizontalAlignment(alignment_)) {
- bool is_first_visible_child = true;
for (int c = child_count() - 1; c >= 0; --c) {
views::View* child = child_at(c);
if (!child->visible())
continue;
- if (!is_first_visible_child)
- columns->AddPaddingColumn(0, GetTrayConstant(TRAY_SPACING));
- is_first_visible_child = false;
columns->AddColumn(views::GridLayout::CENTER, views::GridLayout::FILL,
0, /* resize percent */
views::GridLayout::USE_PREF, 0, 0);
@@ -168,14 +164,10 @@ void StatusAreaWidgetDelegate::UpdateLayout() {
columns->AddColumn(views::GridLayout::FILL, views::GridLayout::CENTER,
0, /* resize percent */
views::GridLayout::USE_PREF, 0, 0);
- bool is_first_visible_child = true;
for (int c = child_count() - 1; c >= 0; --c) {
views::View* child = child_at(c);
if (!child->visible())
continue;
- if (!is_first_visible_child)
- layout->AddPaddingRow(0, GetTrayConstant(TRAY_SPACING));
- is_first_visible_child = false;
layout->StartRow(0, 0);
layout->AddView(child);
}
« no previous file with comments | « no previous file | ash/common/system/tray/system_tray_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698