diff --git a/shell/browser/api/electron_api_service_worker_main.cc b/shell/browser/api/electron_api_service_worker_main.cc index 4d06cc083a12..5d3482f3e1b7 100644 --- a/shell/browser/api/electron_api_service_worker_main.cc +++ b/shell/browser/api/electron_api_service_worker_main.cc @@ -5,7 +5,6 @@ #include "shell/browser/api/electron_api_service_worker_main.h" #include -#include #include #include "base/logging.h" @@ -28,6 +27,7 @@ #include "shell/common/gin_helper/promise.h" #include "shell/common/node_includes.h" #include "shell/common/v8_util.h" +#include "third_party/abseil-cpp/absl/container/flat_hash_map.h" namespace { @@ -58,10 +58,9 @@ std::optional GetLiveVersionInfo( namespace electron::api { // ServiceWorkerKey -> ServiceWorkerMain* -typedef std::unordered_map - VersionIdMap; +using VersionIdMap = absl::flat_hash_map; VersionIdMap& GetVersionIdMap() { static base::NoDestructor instance; diff --git a/shell/browser/api/electron_api_web_frame_main.cc b/shell/browser/api/electron_api_web_frame_main.cc index 40e3d811baf8..2cc7a1b47c0f 100644 --- a/shell/browser/api/electron_api_web_frame_main.cc +++ b/shell/browser/api/electron_api_web_frame_main.cc @@ -5,7 +5,6 @@ #include "shell/browser/api/electron_api_web_frame_main.h" #include -#include #include #include @@ -36,6 +35,7 @@ #include "shell/common/gin_helper/promise.h" #include "shell/common/node_includes.h" #include "shell/common/v8_util.h" +#include "third_party/abseil-cpp/absl/container/flat_hash_map.h" namespace { @@ -99,7 +99,7 @@ namespace electron::api { // Using FrameTreeNode allows us to track frame across navigations. This // is most similar to how