| Index: ash/common/system/update/tray_update.cc
|
| diff --git a/ash/common/system/update/tray_update.cc b/ash/common/system/update/tray_update.cc
|
| index 50362b660c099232b598863dad23eff016fb7766..f24da1468077d3ad2143732a3cc085a726682881 100644
|
| --- a/ash/common/system/update/tray_update.cc
|
| +++ b/ash/common/system/update/tray_update.cc
|
| @@ -81,7 +81,8 @@ SkColor IconColorForUpdateSeverity(UpdateInfo::UpdateSeverity severity,
|
|
|
| class UpdateView : public ActionableView {
|
| public:
|
| - explicit UpdateView(const UpdateInfo& info) : label_(nullptr) {
|
| + UpdateView(SystemTrayItem* owner, const UpdateInfo& info)
|
| + : ActionableView(owner), label_(nullptr) {
|
| SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal,
|
| kTrayPopupPaddingHorizontal, 0,
|
| kTrayPopupPaddingBetweenItems));
|
| @@ -117,6 +118,7 @@ class UpdateView : public ActionableView {
|
| WmShell::Get()->system_tray_delegate()->RequestRestartForUpdate();
|
| WmShell::Get()->RecordUserMetricsAction(
|
| UMA_STATUS_AREA_OS_UPDATE_DEFAULT_SELECTED);
|
| + CloseSystemBubble();
|
| return true;
|
| }
|
|
|
| @@ -156,7 +158,7 @@ bool TrayUpdate::GetInitialVisibility() {
|
| views::View* TrayUpdate::CreateDefaultView(LoginStatus status) {
|
| UpdateInfo info;
|
| WmShell::Get()->system_tray_delegate()->GetSystemUpdateInfo(&info);
|
| - return info.update_required ? new UpdateView(info) : nullptr;
|
| + return info.update_required ? new UpdateView(this, info) : nullptr;
|
| }
|
|
|
| void TrayUpdate::OnUpdateRecommended(const UpdateInfo& info) {
|
|
|