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

Unified Diff: chrome/browser/browsing_data/cookies_tree_model.cc

Issue 124183002: Implement delete methods for the various CannedBrowsingDataHelpers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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/browsing_data/cookies_tree_model.cc
diff --git a/chrome/browser/browsing_data/cookies_tree_model.cc b/chrome/browser/browsing_data/cookies_tree_model.cc
index 51fe80d21f1044f5c709b8efc491db67aac535bc..a22068a1b4b01039d73130b845a0a0975ff7d51b 100644
--- a/chrome/browser/browsing_data/cookies_tree_model.cc
+++ b/chrome/browser/browsing_data/cookies_tree_model.cc
@@ -397,6 +397,10 @@ void CookieTreeSessionStorageNode::DeleteStoredObjects() {
LocalDataContainer* container = GetLocalDataContainerForNode(this);
if (container) {
+ // TODO(rsesek): There's no easy way to get the namespace_id for a session
+ // storage, nor is there an easy way to clear session storage just by
+ // origin. This is probably okay since session storage is not persistent.
+ // http://crbug.com/168996
container->session_storage_info_list_.erase(session_storage_info_);
}
}

Powered by Google App Engine
This is Rietveld 408576698