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

Unified Diff: chrome/browser/renderer_host/database_dispatcher_host.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/net/chrome_cookie_policy.cc ('k') | chrome/common/content_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/database_dispatcher_host.cc
diff --git a/chrome/browser/renderer_host/database_dispatcher_host.cc b/chrome/browser/renderer_host/database_dispatcher_host.cc
index eb51fb9867af97faf52a5e242ac46a3e79de1c86..8973881248db59c9989b37395fa1a9db2dd87e51 100644
--- a/chrome/browser/renderer_host/database_dispatcher_host.cc
+++ b/chrome/browser/renderer_host/database_dispatcher_host.cc
@@ -421,9 +421,10 @@ void DatabaseDispatcherHost::OnAllowDatabase(const std::string& origin_url,
void DatabaseDispatcherHost::AllowDatabaseResponse(
IPC::Message* reply_msg, ContentSetting content_setting) {
DCHECK((content_setting == CONTENT_SETTING_ALLOW) ||
- (content_setting == CONTENT_SETTING_BLOCK));
+ (content_setting == CONTENT_SETTING_BLOCK) ||
+ (content_setting == CONTENT_SETTING_SESSION_ONLY));
ViewHostMsg_AllowDatabase::WriteReplyParams(
- reply_msg, content_setting == CONTENT_SETTING_ALLOW);
+ reply_msg, content_setting != CONTENT_SETTING_BLOCK);
Send(reply_msg);
}
« no previous file with comments | « chrome/browser/net/chrome_cookie_policy.cc ('k') | chrome/common/content_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698