Commit 7a68de4f authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

Make the bloated renderer infobar auto expire on navigation.

When the user navigates while the infobar is visible,
the infobar should disappear.

Bug: 808143
Change-Id: I1265409d7299c6ecd5626e2dae855c7724f7fa48
Reviewed-on: https://chromium-review.googlesource.com/1140303
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575640}
parent 3bd8fefa
......@@ -76,10 +76,12 @@ void BloatedRendererTabHelper::ShowInfoBar(InfoBarService* infobar_service) {
// No infobar service in unit-tests.
return;
}
const bool auto_expire_on_navigation = true;
SimpleAlertInfoBarDelegate::Create(
infobar_service,
infobars::InfoBarDelegate::BLOATED_RENDERER_INFOBAR_DELEGATE, nullptr,
l10n_util::GetStringUTF16(IDS_BROWSER_BLOATED_RENDERER_INFOBAR), false);
l10n_util::GetStringUTF16(IDS_BROWSER_BLOATED_RENDERER_INFOBAR),
auto_expire_on_navigation);
}
bool BloatedRendererTabHelper::CanReloadBloatedTab() {
......
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