| Index: ash/common/system/tray/system_tray.cc
|
| diff --git a/ash/common/system/tray/system_tray.cc b/ash/common/system/tray/system_tray.cc
|
| index db02bb6870cb788044bd8041ab7f7e03aa0119a7..b29adb60a1da6b0192eba1cb27e2e97c4b6deb10 100644
|
| --- a/ash/common/system/tray/system_tray.cc
|
| +++ b/ash/common/system/tray/system_tray.cc
|
| @@ -539,12 +539,11 @@
|
| // (like network) replaces most of the menu.
|
| full_system_tray_menu_ = items.size() > 1;
|
| // The menu width is fixed, and it is a per language setting.
|
| - int menu_width =
|
| - std::max(MaterialDesignController::IsSystemTrayMenuMaterial()
|
| - ? kMinimumSystemTrayMenuWidthMd
|
| - : kMinimumSystemTrayMenuWidth,
|
| - l10n_util::GetLocalizedContentsWidthInPixels(
|
| - IDS_SYSTEM_TRAY_MENU_BUBBLE_WIDTH_PIXELS));
|
| + int menu_width = std::max(
|
| + MaterialDesignController::IsSystemTrayMenuMaterial()
|
| + ? kMinimumSystemTrayMenuWidthMd
|
| + : kMinimumSystemTrayMenuWidth,
|
| + WmShell::Get()->system_tray_delegate()->GetSystemTrayMenuWidth());
|
|
|
| TrayBubbleView::InitParams init_params(TrayBubbleView::ANCHOR_TYPE_TRAY,
|
| GetAnchorAlignment(), menu_width,
|
|
|