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

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

Issue 10636019: Adding Application Data dialog for isolated apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes based on review by Bernhard. Created 8 years, 6 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/options2/cookies_list.js
diff --git a/chrome/browser/resources/options2/cookies_list.js b/chrome/browser/resources/options2/cookies_list.js
index 8a4ae577c02f4d747b0f37eddc89e8d827ab04ff..f0222da8493287c759d64a3652290adafc1600ea 100644
--- a/chrome/browser/resources/options2/cookies_list.js
+++ b/chrome/browser/resources/options2/cookies_list.js
@@ -118,16 +118,26 @@ cr.define('options', function() {
/** @inheritDoc */
decorate: function() {
this.siteChild = this.ownerDocument.createElement('div');
- 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');
- this.infoChild.className = 'cookie-details';
this.infoChild.hidden = true;
+
+ if (this.origin.data.appId && this.origin.data.appId !== '') {
Evan Stade 2012/06/27 04:53:00 '' is falsey so the second half of this check is n
nasko 2012/06/27 17:17:01 The second half is supposed to check if the appId
Evan Stade 2012/06/28 04:15:13 for which value of this.origin.data.appId does [1]
nasko 2012/06/29 00:46:52 Done.
+ this.siteChild.className = 'app-cookie-site';
+ this.dataChild.className = 'app-cookie-data';
+ this.sizeChild.className = 'app-cookie-size';
+ this.itemsChild.className = 'app-cookie-items';
+ this.infoChild.className = 'app-cookie-details';
+ } else {
+ this.siteChild.className = 'cookie-site';
+ this.dataChild.className = 'cookie-data';
+ this.sizeChild.className = 'cookie-size';
+ this.itemsChild.className = 'cookie-items';
+ this.infoChild.className = 'cookie-details';
+ }
+
var remove = this.ownerDocument.createElement('button');
remove.textContent = loadTimeData.getString('remove_cookie');
remove.onclick = this.removeCookie_.bind(this);

Powered by Google App Engine
This is Rietveld 408576698