Lots of non-functional cleanup to ExtensionView{Host,Views} and related.
* DISALLOW_COPY_AND_ASSIGN() -> explicit deletions * Remove using declarations * Use =default * Use in-declaration initializers * NULL -> nullptr * Combine ExtensionViewHost::CreateView() with constructor * Use const and auto more * Use make_unique instead of bare new * Shorten code * Move most of ExtensionDialog::Show() into the constructor * Combine ExtensionDialog::InitWindow() with constructor * Replace GetExtensionView() functions with |extension_view_| members, since the return value is constant (and its source will change in an upcoming CL) * Remove always-true condition from ExtensionDialog::CanResize() (size was always set) * Consistently use |host_|, not host(), in ExtensionPopup * Have ExtensionViewViews obtain the relevant profile from the |host| instead of having it explicitly passed in * For clarity, make ExtensionViewViews::minimum_size_ an Optional instead of treating Size() as a magic value that means "not set" * Eliminate unnecessary friend declaration Bug: none Change-Id: I2733f7460b09c07ada3fcae819d71bee960886ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209593 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:Finnur Thorarinsson <finnur@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#770603}
Showing
This diff is collapsed.
Please register or sign in to comment