Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5132)

Unified Diff: chrome/browser/net/chrome_cookie_policy.cc

Issue 2858018: Add a "session only" policy to the content settings. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/chrome_cookie_policy.cc
diff --git a/chrome/browser/net/chrome_cookie_policy.cc b/chrome/browser/net/chrome_cookie_policy.cc
index a3d583aac041f9a1ec6eaf9a65c288bc7ee621e4..552fec79e092748c875647f228f9cb58834ba28d 100644
--- a/chrome/browser/net/chrome_cookie_policy.cc
+++ b/chrome/browser/net/chrome_cookie_policy.cc
@@ -144,6 +144,8 @@ int ChromeCookiePolicy::CheckPolicy(const GURL& url) const {
return net::ERR_ACCESS_DENIED;
if (setting == CONTENT_SETTING_ALLOW)
return net::OK;
+ if (setting == CONTENT_SETTING_SESSION_ONLY)
+ return net::OK_FOR_SESSION_ONLY;
return net::ERR_IO_PENDING; // Need to prompt.
}
« no previous file with comments | « chrome/browser/in_process_webkit/dom_storage_area.cc ('k') | chrome/browser/renderer_host/database_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698