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 <charles@charleskerr.com>
This commit is contained in:
parent
cadaaaf714
commit
6dea52b6c0
1 changed files with 3 additions and 2 deletions
|
@ -8,11 +8,11 @@
|
|||
#include <list>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#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<extensions::SizeConstraints> content_size_constraints_;
|
||||
|
||||
std::queue<bool> pending_transitions_;
|
||||
base::queue<bool> pending_transitions_;
|
||||
|
||||
FullScreenTransitionType fullscreen_transition_type_ =
|
||||
FullScreenTransitionType::kNone;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue