Improve ClearOnExit behavior of cookies using domain matching

https://chromium-review.googlesource.com/c/chromium/src/+/975861
This commit is contained in:
deepak1556 2018-07-21 02:40:46 +05:30 committed by Aleksei Kuzmin
parent 400b23c5cb
commit d15d08bad6
2 changed files with 8 additions and 3 deletions

View file

@ -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