cbui extensions: further break deps on ExtensionInstalledBubble
This change breaks deps on: * ExtensionInstalledBubble::options() * ExtensionInstalledBubble::browser() * ExtensionInstalledBubble::GetAnchorPoint() The options one is annoying - there is a function called `GetOptionsForExtension` that computed a bitfield here to be passed into the view itself. This change replaces that function and that bitfield with a bunch of free functions, each of which compute one of the option values. I think the overall result is easier to reason about. The browser one is straightforward. The GetAnchorPoint one was dead code in Views anyway - the implementation actually lives in this file in //cbui/v and not with the rest of the class, and it simply does: gfx::Point ExtensionInstalledBubble::GetAnchorPoint( gfx::NativeWindow window) const { NOTREACHED(); // There is always an anchor view. return gfx::Point(); } So the code now checks and relies on that assumption. Bug: 496955 Change-Id: Ic5d32d33bb6f50a02d95e46c4d937605f2aa88b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1958827 Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:Peter Boström <pbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#723360}
Showing
Please register or sign in to comment