| Index: ash/system/tray/system_tray.cc
|
| diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
|
| index d07104b8b206d07f38f6f2751b826b52e77b5197..ebb5e68a82797030feaa6920f6b8d4f3856988e9 100644
|
| --- a/ash/system/tray/system_tray.cc
|
| +++ b/ash/system/tray/system_tray.cc
|
| @@ -94,9 +94,11 @@
|
| bubble_->InitView(anchor, login_status, init_params);
|
| bubble_wrapper_.reset(
|
| new internal::TrayBubbleWrapper(tray, bubble_->bubble_view()));
|
| - // The system bubble should not have an arrow.
|
| - bubble_->bubble_view()->SetArrowPaintType(
|
| - views::BubbleBorder::PAINT_NONE);
|
| + if (ash::switches::UseAlternateShelfLayout()) {
|
| + // The system bubble should not have an arrow.
|
| + bubble_->bubble_view()->SetArrowPaintType(
|
| + views::BubbleBorder::PAINT_NONE);
|
| + }
|
| is_persistent_ = is_persistent;
|
|
|
| // If ChromeVox is enabled, focus the default item if no item is focused.
|
| @@ -480,7 +482,8 @@
|
| menu_width,
|
| kTrayPopupMaxWidth);
|
| init_params.can_activate = can_activate;
|
| - init_params.first_item_has_no_margin = true;
|
| + init_params.first_item_has_no_margin =
|
| + ash::switches::UseAlternateShelfLayout();
|
| if (detailed) {
|
| // This is the case where a volume control or brightness control bubble
|
| // is created.
|
| @@ -551,7 +554,8 @@
|
| GetAnchorAlignment(),
|
| kTrayPopupMinWidth,
|
| kTrayPopupMaxWidth);
|
| - init_params.first_item_has_no_margin = true;
|
| + init_params.first_item_has_no_margin =
|
| + ash::switches::UseAlternateShelfLayout();
|
| init_params.arrow_color = kBackgroundColor;
|
| init_params.arrow_offset = GetTrayXOffset(notification_items_[0]);
|
| notification_bubble_.reset(
|
|
|