fix: NativeWindowViews::GetRestoredState() can return wrong state when maximized (#46463)

fix: NativeWindowViews::GetRestoredState() returning wrong state

Introduced by the af58931 Chromium 131.0.6744.0 roll, specifically
9840662 (diff-f9d7ef7)

98406626

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2025-04-03 19:23:54 -05:00 committed by GitHub
parent 8fec7adfa6
commit 0cb42911ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1851,7 +1851,7 @@ ui::mojom::WindowShowState NativeWindowViews::GetRestoredState() {
return ui::mojom::WindowShowState::kMaximized;
}
#else
return ui::mojom::WindowShowState::kMinimized;
return ui::mojom::WindowShowState::kMaximized;
#endif
}