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

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

Issue 2268273002: Site Settings Desktop: Show the type of cookie in dropdown (instead of url). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/resources/settings/site_settings/site_data_details_dialog.js
diff --git a/chrome/browser/resources/settings/site_settings/site_data_details_dialog.js b/chrome/browser/resources/settings/site_settings/site_data_details_dialog.js
index 577664adbf2c88e965880cb6af3ddf8f54ddeb88..d537d8c4f937d8e7c0382cf1b051737046ca6efc 100644
--- a/chrome/browser/resources/settings/site_settings/site_data_details_dialog.js
+++ b/chrome/browser/resources/settings/site_settings/site_data_details_dialog.js
@@ -157,6 +157,16 @@ Polymer({
}
},
+ getEntryDescription: function(item) {
+ // Frequently there are multiple cookies per site. To avoid showing a list
+ // of '1 cookie', '1 cookie', ... etc, it is better to show the title of the
+ // cookie to differentiate them.
+ if (item.data.type == 'cookie')
+ return item.title;
+
+ return getCookieDataCategoryText(item.data.type, 0, item.data.totalUsage);
dschuyler 2016/08/23 18:53:39 Suggestion: just preference, but if getCookieData
Finnur 2016/08/24 11:31:14 That's reasonable. Done.
+ },
+
/**
* A handler for when the user opts to remove a single cookie.
* @private

Powered by Google App Engine
This is Rietveld 408576698