Null check BadgeManager before attempting to add it to a ReceiverSet.
In incognito and guest profiles, the BadgeManagerFactory does not create a BadgeManager. As there are no apps in incognito/guest profiles this would not normally be a problem. However, in BadgeManager::BindRequest, we were attempting to add the null BadgeManager to a mojo reciever set, causing a crash. Note: This does not affect the API exposed to the, so this cannot be used to detect incognito mode. Bug: 1004122 Change-Id: I5024665257a67aaaf28aa7f3bb8cd9cfcdef2d25 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824041Reviewed-by:Alan Cutter <alancutter@chromium.org> Commit-Queue: Jay Harris <harrisjay@chromium.org> Cr-Commit-Position: refs/heads/master@{#700073}
Showing
Please register or sign in to comment