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

Unified Diff: chrome/browser/resources/settings/site_settings/cookie_tree_node.js

Issue 2450423002: [MD settings] cookie and site data from dialog to subpage (Closed)
Patch Set: review nit Created 4 years, 1 month 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/resources/settings/site_settings/cookie_tree_node.js
diff --git a/chrome/browser/resources/settings/site_settings/cookie_tree_node.js b/chrome/browser/resources/settings/site_settings/cookie_tree_node.js
index 34c91c8e42736ce50a4c1819015a0c77f06b0a3a..8dd3b42674942d4ded6c4c1fb56e4b9c8fe337d0 100644
--- a/chrome/browser/resources/settings/site_settings/cookie_tree_node.js
+++ b/chrome/browser/resources/settings/site_settings/cookie_tree_node.js
@@ -184,7 +184,6 @@ cr.define('settings', function() {
description += getCookieDataCategoryText(
dataType, descriptionNode.data.totalUsage);
}
-
}
list.push({ site: title, id: id, localData: description });
}
@@ -214,6 +213,19 @@ cr.define('settings', function() {
}
return null;
},
+
+ /**
+ * Fetch a CookieTreeNode by site.
+ * @param {string} site The web site to look up.
+ * @return {?settings.CookieTreeNode} The node found, if any.
+ */
+ fetchNodeBySite: function(site) {
+ for (var i = 0; i < this.children_.length; ++i) {
+ if (this.children_[i].data.title == site)
+ return this.children_[i];
+ }
+ return null;
+ },
};
return {

Powered by Google App Engine
This is Rietveld 408576698