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

Unified Diff: chrome/browser/in_process_webkit/dom_storage_area.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
« no previous file with comments | « chrome/browser/cookie_modal_dialog.cc ('k') | chrome/browser/net/chrome_cookie_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/in_process_webkit/dom_storage_area.cc
diff --git a/chrome/browser/in_process_webkit/dom_storage_area.cc b/chrome/browser/in_process_webkit/dom_storage_area.cc
index a0ef9b9aaf6e90798ace5705d51935d597e4f802..6aefa21571f087a66b9b740f807c10a1feb9896d 100644
--- a/chrome/browser/in_process_webkit/dom_storage_area.cc
+++ b/chrome/browser/in_process_webkit/dom_storage_area.cc
@@ -113,8 +113,5 @@ bool DOMStorageArea::CheckContentSetting(
content_setting = request.WaitOnResponse();
}
- if (content_setting == CONTENT_SETTING_ALLOW)
- return true;
- DCHECK(content_setting == CONTENT_SETTING_BLOCK);
- return false;
+ return (content_setting != CONTENT_SETTING_BLOCK);
}
« no previous file with comments | « chrome/browser/cookie_modal_dialog.cc ('k') | chrome/browser/net/chrome_cookie_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698