Callers should use WmShelf::IsHorizontalAlignment() instead of using the bare function.
Bonus points for eliminating places in the system tray code that cache their own copy of the alignment.
https://codereview.chromium.org/2676673005/ fixes most calls.
The status area is still caching its own copy of shelf alignment. I haven't looked into that yet. It might be a remnant from when the old Shelf object didn't exist before ShelfView creation. Ideally the status area would use WmShelf::GetAlignment().
Comment 1 by jamescook@chromium.org
, Feb 3 2017