diff options
Diffstat (limited to 'extensions/shell/browser')
-rw-r--r-- | extensions/shell/browser/shell_special_storage_policy.cc | 6 | ||||
-rw-r--r-- | extensions/shell/browser/shell_special_storage_policy.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/extensions/shell/browser/shell_special_storage_policy.cc b/extensions/shell/browser/shell_special_storage_policy.cc index 5ed1b50..d43c71b 100644 --- a/extensions/shell/browser/shell_special_storage_policy.cc +++ b/extensions/shell/browser/shell_special_storage_policy.cc @@ -20,6 +20,12 @@ bool ShellSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) { return true; } +bool ShellSpecialStoragePolicy::IsStorageDurable(const GURL& origin) { + // The plan is to forbid extensions from acquiring the durable storage + // permission because they can specify 'unlimitedStorage' in the manifest. + return false; +} + bool ShellSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) { return false; } diff --git a/extensions/shell/browser/shell_special_storage_policy.h b/extensions/shell/browser/shell_special_storage_policy.h index e59602f..dc78154 100644 --- a/extensions/shell/browser/shell_special_storage_policy.h +++ b/extensions/shell/browser/shell_special_storage_policy.h @@ -18,6 +18,7 @@ class ShellSpecialStoragePolicy : 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 IsStorageSessionOnly(const GURL& origin) override; bool CanQueryDiskSize(const GURL& origin) override; bool HasIsolatedStorage(const GURL& origin) override; |