Index: ash/system/chromeos/network/tray_network.cc |
diff --git a/ash/system/chromeos/network/tray_network.cc b/ash/system/chromeos/network/tray_network.cc |
index 4bdb4284bf839c14b9769da81dbab5e9bd36c78b..5bc9c8f36977debd65ceb2ad686011a9c9fee6a0 100644 |
--- a/ash/system/chromeos/network/tray_network.cc |
+++ b/ash/system/chromeos/network/tray_network.cc |
@@ -6,6 +6,7 @@ |
#include "ash/ash_switches.h" |
#include "ash/metrics/user_metrics_recorder.h" |
+#include "ash/shelf/shelf_util.h" |
#include "ash/shell.h" |
#include "ash/system/chromeos/network/network_state_list_detailed_view.h" |
#include "ash/system/chromeos/network/tray_network_state_observer.h" |
@@ -91,7 +92,7 @@ class NetworkTrayView : public TrayItemView, |
} |
void UpdateAlignment(ShelfAlignment alignment) { |
- SetLayoutManager(new views::BoxLayout(alignment == SHELF_ALIGNMENT_BOTTOM |
+ SetLayoutManager(new views::BoxLayout(IsHorizontalAlignment(alignment) |
? views::BoxLayout::kHorizontal |
: views::BoxLayout::kVertical, |
0, 0, 0)); |