From 3a0f806d2216352bfaac7ba69a40292435dd59fd Mon Sep 17 00:00:00 2001 From: Keeley Hammond Date: Mon, 26 Jan 2026 16:08:28 -0800 Subject: [PATCH] 6625736: Rename DURABLE_STORAGE to PERSISTENT_STORAGE for consistency | https://chromium-review.googlesource.com/c/chromium/src/+/6625736 --- shell/browser/special_storage_policy.cc | 2 +- shell/browser/special_storage_policy.h | 2 +- shell/common/gin_converters/content_converter.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/browser/special_storage_policy.cc b/shell/browser/special_storage_policy.cc index 9a60656480..985dbaa71b 100644 --- a/shell/browser/special_storage_policy.cc +++ b/shell/browser/special_storage_policy.cc @@ -20,7 +20,7 @@ bool SpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) { return true; } -bool SpecialStoragePolicy::IsStorageDurable(const GURL& origin) { +bool SpecialStoragePolicy::IsStoragePersistent(const GURL& origin) { return true; } diff --git a/shell/browser/special_storage_policy.h b/shell/browser/special_storage_policy.h index 30aa4bd54f..c4815ef87c 100644 --- a/shell/browser/special_storage_policy.h +++ b/shell/browser/special_storage_policy.h @@ -16,7 +16,7 @@ class SpecialStoragePolicy : public storage::SpecialStoragePolicy { // storage::SpecialStoragePolicy implementation. bool IsStorageProtected(const GURL& origin) override; bool IsStorageUnlimited(const GURL& origin) override; - bool IsStorageDurable(const GURL& origin) override; + bool IsStoragePersistent(const GURL& origin) override; bool HasIsolatedStorage(const GURL& origin) override; bool IsStorageSessionOnly(const GURL& origin) override; bool HasSessionOnlyOrigins() override; diff --git a/shell/common/gin_converters/content_converter.cc b/shell/common/gin_converters/content_converter.cc index 349d2cbd64..6bada32a25 100644 --- a/shell/common/gin_converters/content_converter.cc +++ b/shell/common/gin_converters/content_converter.cc @@ -187,7 +187,7 @@ v8::Local Converter::ToV8( return StringToV8(isolate, "payment-handler"); case blink::PermissionType::PERIODIC_BACKGROUND_SYNC: return StringToV8(isolate, "periodic-background-sync"); - case blink::PermissionType::DURABLE_STORAGE: + case blink::PermissionType::PERSISTENT_STORAGE: return StringToV8(isolate, "persistent-storage"); case blink::PermissionType::GEOLOCATION: return StringToV8(isolate, "geolocation");