Refactor PermissionPromptBubbleView to remove visible_requests_.
The API comment for PermissionPrompt::Delegate::Requests forbids clients from storing the pointers to PermissionRequest objects, which is violated by PermissionPromptBubbleView::visible_requests_. This patch removes that field and recalculates the visible requests in the two places it's required. This also happens to be convenient for further refactoring plans. Bug: 1110905 Change-Id: I018b7d9fc00445b05268db9e005377a64bfe138e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2577497 Commit-Queue: Balazs Engedy <engedy@chromium.org> Reviewed-by:Olesia Marukhno <olesiamarukhno@google.com> Reviewed-by:
Balazs Engedy <engedy@chromium.org> Cr-Commit-Position: refs/heads/master@{#846068}
Showing
Please register or sign in to comment