From c769361af2ec2097a2b2d460a2543c330e684cfe Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 15 Jan 2026 18:09:43 -0600 Subject: [PATCH] fix: warning: default arguments on virtual or override methods (#49398) fix: warning: default arguments on virtual or override methods are prohibited [google-default-arguments] we never override these, so just make them nonvirtual --- shell/browser/native_window.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/browser/native_window.h b/shell/browser/native_window.h index bf7fab116a..34c89bef3a 100644 --- a/shell/browser/native_window.h +++ b/shell/browser/native_window.h @@ -106,9 +106,9 @@ class NativeWindow : public base::SupportsUserData, void SetPosition(const gfx::Point& position, bool animate = false); [[nodiscard]] gfx::Point GetPosition() const; - virtual void SetContentSize(const gfx::Size& size, bool animate = false); + void SetContentSize(const gfx::Size& size, bool animate = false); virtual gfx::Size GetContentSize() const; - virtual void SetContentBounds(const gfx::Rect& bounds, bool animate = false); + void SetContentBounds(const gfx::Rect& bounds, bool animate = false); virtual gfx::Rect GetContentBounds() const; virtual bool IsNormal() const; virtual gfx::Rect GetNormalBounds() const = 0;