Commit cd7ad821 authored by Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez Committed by Commit Bot

Replace std::unordered_set with std::set.

Per //base/containers/README.md, std::set is generally recommended,
unless there are strong reasons for using unordered_set.

Change-Id: Id6fa60482aa4277f723137bbc53d3b7fa341e925
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2372464Reviewed-by: default avatarJoanmarie Diggs <jdiggs@igalia.com>
Commit-Queue: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Cr-Commit-Position: refs/heads/master@{#801409}
parent 679e60e7
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <atk/atk.h> #include <atk/atk.h>
#include <map> #include <map>
#include <memory> #include <memory>
#include <set>
#include <string> #include <string>
#include <utility> #include <utility>
...@@ -53,7 +54,7 @@ static KeySnoopFuncMap& GetActiveKeySnoopFunctions() { ...@@ -53,7 +54,7 @@ static KeySnoopFuncMap& GetActiveKeySnoopFunctions() {
return *active_key_snoop_functions; return *active_key_snoop_functions;
} }
using AXPlatformNodeSet = std::unordered_set<ui::AXPlatformNodeAuraLinux*>; using AXPlatformNodeSet = std::set<ui::AXPlatformNodeAuraLinux*>;
static AXPlatformNodeSet& GetNodesWithPostponedEvents() { static AXPlatformNodeSet& GetNodesWithPostponedEvents() {
static base::NoDestructor<AXPlatformNodeSet> nodes_with_postponed_events_list; static base::NoDestructor<AXPlatformNodeSet> nodes_with_postponed_events_list;
return *nodes_with_postponed_events_list; return *nodes_with_postponed_events_list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment