Misc. cleanup in ExtensionPopup code:
* Use constexpr * Change override comments to match more common style * Call superclass methods (more technically correct) * In OnWidgetActivationChanged(), call superclass method before doing override code instead of after; this makes it harder to omit calling the superclass via early return * Use CloseWithReason(), as BubbleDialogDelegateView does * Shorten code by using conditional instead of switch, and not handling DCHECK failure Bug: none Change-Id: Iffe3a4f229924fad13fd9b08e431a31308821fbb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1531652 Commit-Queue: Peter Kasting <pkasting@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#642376}
Showing
Please register or sign in to comment