|
@@ -5,7 +5,6 @@
|
|
|
#include "shell/browser/api/electron_api_service_worker_main.h"
|
|
|
|
|
|
#include <string>
|
|
|
-#include <unordered_map>
|
|
|
#include <utility>
|
|
|
|
|
|
#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<content::ServiceWorkerVersionBaseInfo> GetLiveVersionInfo(
|
|
|
namespace electron::api {
|
|
|
|
|
|
// ServiceWorkerKey -> ServiceWorkerMain*
|
|
|
-typedef std::unordered_map<ServiceWorkerKey,
|
|
|
- ServiceWorkerMain*,
|
|
|
- ServiceWorkerKey::Hasher>
|
|
|
- VersionIdMap;
|
|
|
+using VersionIdMap = absl::flat_hash_map<ServiceWorkerKey,
|
|
|
+ ServiceWorkerMain*,
|
|
|
+ ServiceWorkerKey::Hasher>;
|
|
|
|
|
|
VersionIdMap& GetVersionIdMap() {
|
|
|
static base::NoDestructor<VersionIdMap> instance;
|