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

Unified Diff: ash/system/status_area_widget_delegate.cc

Issue 10825389: Fix accessability for web notification tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix asan bug Created 8 years, 4 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/status_area_widget.cc ('k') | ash/system/tray/system_tray.h » ('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 0db7b0ada44fde2098ddc9f768125b8222a6a263..2c0e7d2766a6c0f7f561ff68611db9103c0a5041 100644
--- a/ash/system/status_area_widget_delegate.cc
+++ b/ash/system/status_area_widget_delegate.cc
@@ -96,14 +96,14 @@ void StatusAreaWidgetDelegate::UpdateLayout() {
views::GridLayout::USE_PREF, 0, 0);
}
layout->StartRow(0, 0);
- for (int c = 0; c < child_count(); ++c)
+ for (int c = child_count() - 1; c >= 0; --c)
layout->AddView(child_at(c));
} else {
columns->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER,
0, /* resize percent */
views::GridLayout::USE_PREF, 0, 0);
- for (int c = 0; c < child_count(); ++c) {
- if (c != 0)
+ for (int c = child_count() - 1; c >= 0; --c) {
+ if (c != child_count() - 1)
layout->AddPaddingRow(0, kTraySpacing);
layout->StartRow(0, 0);
layout->AddView(child_at(c));
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/system/tray/system_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698