From 6dea52b6c0147123fb55b07f44c788facd99ad5d Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 10:27:11 +0200 Subject: [PATCH] refactor: make `NativeWindow::pending_transitions_` a `base::queue` (#47182) refactor: make NativeWindow::pending_transitions a base::queue Follow the base/containers/README.md advice that "Chromium code should always use `base::circular_deque` or `base::queue` in preference to `std::deque` or `std::queue` due to memory usage and platform variation." Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/browser/native_window.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/browser/native_window.h b/shell/browser/native_window.h index d1dc5f42eef3..c6699ca38962 100644 --- a/shell/browser/native_window.h +++ b/shell/browser/native_window.h @@ -8,11 +8,11 @@ #include #include #include -#include #include #include #include +#include "base/containers/queue.h" #include "base/memory/raw_ptr.h" #include "base/memory/weak_ptr.h" #include "base/observer_list.h" @@ -462,7 +462,8 @@ class NativeWindow : public base::SupportsUserData, // on HiDPI displays on some environments. std::optional content_size_constraints_; - std::queue pending_transitions_; + base::queue pending_transitions_; + FullScreenTransitionType fullscreen_transition_type_ = FullScreenTransitionType::kNone;