Commit 32ecb238 authored by Collin Baker's avatar Collin Baker Committed by Commit Bot

Don't close reopen tab promo bubble on deactivation

Fixes promo display on Windows, where promo bubble is activated then
immediately deactivated when opening a new tab.

Change-Id: Icc764660b5a4840edf7e345fdd460126cc1c1600
Reviewed-on: https://chromium-review.googlesource.com/c/1344869Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Commit-Queue: Collin Baker <collinbaker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610144}
parent 45cde148
......@@ -38,6 +38,7 @@ void ReopenTabPromoController::ShowPromo() {
promo_bubble_ = FeaturePromoBubbleView::CreateOwned(
app_menu_button, views::BubbleBorder::Arrow::TOP_RIGHT,
IDS_REOPEN_TAB_PROMO, FeaturePromoBubbleView::ActivationAction::ACTIVATE);
promo_bubble_->set_close_on_deactivate(false);
promo_bubble_->GetWidget()->AddObserver(this);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment