| 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 37a93ff445c665ab526387aa2b846b067f68d715..dd9102e8e429ba0bbe8c071360802dd163b97e7e 100644
|
| --- a/chrome/browser/resources/options/cookies_list.js
|
| +++ b/chrome/browser/resources/options/cookies_list.js
|
| @@ -101,6 +101,8 @@ cr.define('options', function() {
|
| this.siteChild.className = 'cookie-site';
|
| this.dataChild = this.ownerDocument.createElement('div');
|
| this.dataChild.className = 'cookie-data';
|
| + this.sizeChild = this.ownerDocument.createElement('div');
|
| + this.sizeChild.className = 'cookie-size';
|
| this.itemsChild = this.ownerDocument.createElement('div');
|
| this.itemsChild.className = 'cookie-items';
|
| this.infoChild = this.ownerDocument.createElement('div');
|
| @@ -113,6 +115,7 @@ cr.define('options', function() {
|
| var content = this.contentElement;
|
| content.appendChild(this.siteChild);
|
| content.appendChild(this.dataChild);
|
| + content.appendChild(this.sizeChild);
|
| content.appendChild(this.itemsChild);
|
| this.itemsChild.appendChild(this.infoChild);
|
| if (this.origin && this.origin.data) {
|
| @@ -232,6 +235,15 @@ cr.define('options', function() {
|
| else
|
| text = list[i];
|
| this.dataChild.textContent = text;
|
| + if (info.quota) {
|
| + this.sizeChild.textContent = info.quota.totalUsage;
|
| + }
|
| +
|
| + // TODO(tzik): remove the entry if list is empty
|
| + // if (!list.length) {
|
| + // REMOVE SELF
|
| + // }
|
| +
|
| if (this.expanded)
|
| this.updateItems_();
|
| },
|
| @@ -424,6 +436,13 @@ cr.define('options', function() {
|
| info.indexedDb = true;
|
| else if (this.data.type == 'file_system')
|
| info.fileSystem = true;
|
| + else if (this.data.type == 'quota')
|
| + info.quota = {
|
| + totalUsage: this.data.totalUsage,
|
| + temporaryUsage: this.data.temporaryUsage,
|
| + persistentUsage: this.data.persistentUsage,
|
| + persistentQuota: this.data.persistentQuota,
|
| + };
|
| }
|
| },
|
|
|
| @@ -456,6 +475,8 @@ cr.define('options', function() {
|
| text = localStrings.getString('cookie_file_system');
|
| break;
|
| }
|
| + if (!text)
|
| + return;
|
| var div = item.ownerDocument.createElement('div');
|
| div.className = 'cookie-item';
|
| // Help out screen readers and such: this is a clickable thing.
|
|
|