Revert "Replace AppBannerManager::need_to_log_status_ with StatusReporter."
This reverts commit 05b21c67. Reason for revert: This is causing crashes; see crbug/763891. The crash implies that AppBannerManagerAndroid::ShowBannerUi() is being called without a preceding call to AppBannerManager::RequestAppBanner() or after a call to AppBannerManager::Stop(). Perhaps Stop is being called due to the webcontents being destroyed, and ShowBannerUi is being called after that. I'm not sure whether this is plausible. Reverting until I understand this better. Original change's description: > Replace AppBannerManager::need_to_log_status_ with StatusReporter. > > AppBannerManager treats need_to_log_status_ differently (in both > RequestAppBanner and ReportStatus) depending on the return value of > IsDebugMode(). This makes it harder to reason about the valid states for > need_to_log_status_. This CL replaces need_to_log_status_ with a > StatusReporter, which has an implemenation that is decided by consulting > IsDebugMode() once in RequestAppBanner. > > Change-Id: I862fd76c9732cfcda0d5bf787a51161ef4fbfb66 > Reviewed-on: https://chromium-review.googlesource.com/630898 > Commit-Queue: Michael McGreevy <mcgreevy@chromium.org> > Reviewed-by: Ben Wells <benwells@chromium.org> > Cr-Commit-Position: refs/heads/master@{#500199} TBR=benwells@chromium.org,mcgreevy@chromium.org Bug: 763891 Change-Id: Ia5a3dc666a2c27535aacc1abf2ea46f71c9eb94b Reviewed-on: https://chromium-review.googlesource.com/665639Reviewed-by:Ben Wells <benwells@chromium.org> Commit-Queue: Michael McGreevy <mcgreevy@chromium.org> Cr-Commit-Position: refs/heads/master@{#502177}
Showing
Please register or sign in to comment