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

Unified Diff: chrome/browser/resources/options/cookies_list.js

Issue 2359393002: Adds media license nodes to cookie tree model and cookies view. (Closed)
Patch Set: rebase Created 4 years, 2 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/options/cookies_list.js
diff --git a/chrome/browser/resources/options/cookies_list.js b/chrome/browser/resources/options/cookies_list.js
index c3b97c214b82d71dc1b16b5f4814b0f153d72331..21f4d00bbfbe83a9ab22710b50b7a33b23f9db38 100644
--- a/chrome/browser/resources/options/cookies_list.js
+++ b/chrome/browser/resources/options/cookies_list.js
@@ -47,6 +47,9 @@ cr.define('options', function() {
['size', 'label_cache_storage_size'],
['modified', 'label_cache_storage_last_modified']],
'flash_lso': [['domain', 'label_cookie_domain']],
+ 'media_license': [['origin', 'label_media_license_origin'],
+ ['size', 'label_media_license_size'],
+ ['modified', 'label_media_license_last_modified']],
};
/**
@@ -256,6 +259,7 @@ cr.define('options', function() {
channelIDs: 0,
serviceWorker: false,
cacheStorage: false,
+ mediaLicense: false,
};
if (this.origin)
this.origin.collectSummaryInfo(info);
@@ -281,6 +285,8 @@ cr.define('options', function() {
list.push(loadTimeData.getString('cookie_cache_storage'));
if (info.flashLSO)
list.push(loadTimeData.getString('cookie_flash_lso'));
+ if (info.mediaLicense)
+ list.push(loadTimeData.getString('cookie_media_license'));
var text = '';
for (var i = 0; i < list.length; ++i) {
@@ -505,6 +511,8 @@ cr.define('options', function() {
info.cacheStorage = true;
} else if (this.data.type == 'flash_lso') {
info.flashLSO = true;
+ } else if (this.data.type == 'media_license') {
+ info.mediaLicense = true;
}
var apps = this.data.appsProtectingThis;

Powered by Google App Engine
This is Rietveld 408576698