Commit 2fa6c2ff authored by robertshield's avatar robertshield Committed by Commit bot

Remove registration in toolbar_view.cc for unused notification.

This was causing a DCHECK as ToolbarView::Observe both didn't handle the
asked-for notification and DCHECKed on unhandled notification types.

BUG=407124
TEST=NONE

Review URL: https://codereview.chromium.org/503783002

Cr-Commit-Position: refs/heads/master@{#291823}
parent 58867a95
......@@ -155,8 +155,6 @@ ToolbarView::ToolbarView(Browser* browser)
(browser->is_app() && IsStreamlinedHostedAppsEnabled()))
display_mode_ = DISPLAYMODE_NORMAL;
registrar_.Add(this, chrome::NOTIFICATION_UPGRADE_RECOMMENDED,
content::NotificationService::AllSources());
if (OutdatedUpgradeBubbleView::IsAvailable()) {
registrar_.Add(this, chrome::NOTIFICATION_OUTDATED_INSTALL,
content::NotificationService::AllSources());
......
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