| Index: chrome/browser/resources/options2/cookies_list.js
|
| diff --git a/chrome/browser/resources/options2/cookies_list.js b/chrome/browser/resources/options2/cookies_list.js
|
| index 8a4ae577c02f4d747b0f37eddc89e8d827ab04ff..b4e8b8b7e61222e51efe736725b7bf5f96737ae3 100644
|
| --- a/chrome/browser/resources/options2/cookies_list.js
|
| +++ b/chrome/browser/resources/options2/cookies_list.js
|
| @@ -255,6 +255,17 @@ cr.define('options', function() {
|
| else
|
| text = list[i];
|
| this.dataChild.textContent = text;
|
| + var apps = info.protectedByApps;
|
| + if (apps) {
|
| + for (var key in apps) {
|
| + var img = this.dataChild.ownerDocument.createElement('img');
|
| + img.src = 'chrome://extension-icon/' + key + '/16/1';
|
| + img.title = loadTimeData.getString('label_protected_by_apps') +
|
| + ' ' + apps[key].name;
|
| + img.className = 'protecting-app';
|
| + this.dataChild.appendChild(img);
|
| + }
|
| + }
|
| if (info.quota && info.quota.totalUsage) {
|
| this.sizeChild.textContent = info.quota.totalUsage;
|
| }
|
| @@ -456,6 +467,14 @@ cr.define('options', function() {
|
| } else if (this.data.type == 'server_bound_cert') {
|
| info.serverBoundCerts++;
|
| }
|
| + var apps = this.data.protectedByApps;
|
| + if (apps) {
|
| + if (!info.protectedByApps)
|
| + info.protectedByApps = {};
|
| + apps.forEach(function(appInfo) {
|
| + info.protectedByApps[appInfo.id] = appInfo;
|
| + });
|
| + }
|
| }
|
| },
|
|
|
| @@ -498,6 +517,17 @@ cr.define('options', function() {
|
| // Help out screen readers and such: this is a clickable thing.
|
| div.setAttribute('role', 'button');
|
| div.textContent = text;
|
| + var apps = this.data.protectedByApps;
|
| + if (apps) {
|
| + apps.forEach(function(appInfo) {
|
| + var img = div.ownerDocument.createElement('img');
|
| + img.src = 'chrome://extension-icon/' + appInfo.id + '/16/1';
|
| + img.title = loadTimeData.getString('label_protected_by_apps') +
|
| + ' ' + appInfo.name;
|
| + img.className = 'protecting-app';
|
| + div.appendChild(img);
|
| + });
|
| + }
|
| var index = item.appendItem(this, div);
|
| div.onclick = function() {
|
| if (item.selectedIndex == index)
|
|
|