Improve ClearOnExit behavior of cookies using domain matching
https://chromium-review.googlesource.com/c/chromium/src/+/975861
This commit is contained in:
parent
400b23c5cb
commit
d15d08bad6
2 changed files with 8 additions and 3 deletions
|
@ -4,6 +4,9 @@
|
|||
|
||||
#include "atom/browser/special_storage_policy.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/callback.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
SpecialStoragePolicy::SpecialStoragePolicy() {}
|
||||
|
@ -34,8 +37,9 @@ bool SpecialStoragePolicy::HasSessionOnlyOrigins() {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool SpecialStoragePolicy::ShouldDeleteCookieOnExit(const GURL& origin) {
|
||||
return false;
|
||||
storage::SpecialStoragePolicy::DeleteCookiePredicate
|
||||
SpecialStoragePolicy::CreateDeleteCookieOnExitPredicate() {
|
||||
return storage::SpecialStoragePolicy::DeleteCookiePredicate();
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
|
@ -20,7 +20,8 @@ class SpecialStoragePolicy : public storage::SpecialStoragePolicy {
|
|||
bool HasIsolatedStorage(const GURL& origin) override;
|
||||
bool IsStorageSessionOnly(const GURL& origin) override;
|
||||
bool HasSessionOnlyOrigins() override;
|
||||
bool ShouldDeleteCookieOnExit(const GURL& origin) override;
|
||||
storage::SpecialStoragePolicy::DeleteCookiePredicate
|
||||
CreateDeleteCookieOnExitPredicate() override;
|
||||
|
||||
protected:
|
||||
~SpecialStoragePolicy() override;
|
||||
|
|
Loading…
Add table
Reference in a new issue