-
Patrick Monette authored
InfoBarManager::AddInfoBar() can return nullptr for a few reasons, and in those case, the supplied |infobar| gets deleted when the function return. Simply close the infobar and return early when AddInfoBar() returns null. Bug: 717933 Change-Id: I960c14a29a401e11bab63ca9eab6186794c9f13e Reviewed-on: https://chromium-review.googlesource.com/565890 Commit-Queue: Patrick Monette <pmonette@chromium.org> Reviewed-by: Pavel Feldman <pfeldman@chromium.org> Reviewed-by: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#496409}
592bf1a1