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

Unified Diff: chrome/browser/resources/md_downloads/item.js

Issue 1266443007: MD downloads: implement incognito markers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-menu2
Patch Set: Created 5 years, 5 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/md_downloads/item.js
diff --git a/chrome/browser/resources/md_downloads/item.js b/chrome/browser/resources/md_downloads/item.js
index 3321dcd70f7a675f3bb6cbff98d061698887ae7f..bb6389fed7ada837f846f4fc8c22146c712fd050 100644
--- a/chrome/browser/resources/md_downloads/item.js
+++ b/chrome/browser/resources/md_downloads/item.js
@@ -31,9 +31,16 @@ cr.define('downloads', function() {
observer: 'onScrollbarWidthChange_',
},
+ /** @private */
isDangerous_: {type: Boolean, value: false},
- /** Only set when |isDangerous| is true. */
+ /** @private */
+ isIncognito_: {type: Boolean, value: false},
+
+ /**
+ * Only set when |isDangerous| is true.
+ * @private
+ */
isMalware_: Boolean,
},
@@ -42,6 +49,8 @@ cr.define('downloads', function() {
assert(!this.id_ || data.id == this.id_);
this.id_ = data.id; // This is the only thing saved from |data|.
+ this.isIncognito_ = data.otr;
+
// Danger-independent UI and controls.
this.ensureTextIs_(this.$.since, data.since_string);
this.ensureTextIs_(this.$.date, data.date_string);

Powered by Google App Engine
This is Rietveld 408576698