Index: chrome/browser/resources/downloads/downloads.js |
diff --git a/chrome/browser/resources/downloads/downloads.js b/chrome/browser/resources/downloads/downloads.js |
index c6a625311b8ef2f58a5b357a572366204006a7a1..14e2b8ae0c4530de479464a24d75b95b2010fccf 100644 |
--- a/chrome/browser/resources/downloads/downloads.js |
+++ b/chrome/browser/resources/downloads/downloads.js |
@@ -423,6 +423,7 @@ Download.prototype.update = function(download) { |
this.state_ = download.state; |
this.fileExternallyRemoved_ = download.file_externally_removed; |
this.dangerType_ = download.danger_type; |
+ this.finchString_ = download.finch_string; |
this.lastReasonDescription_ = download.last_reason_text; |
this.byExtensionId_ = download.by_ext_id; |
this.byExtensionName_ = download.by_ext_name; |
@@ -452,6 +453,10 @@ Download.prototype.update = function(download) { |
this.dangerDesc_.textContent = loadTimeData.getStringF( |
'danger_potentially_unwanted_desc', this.fileName_); |
} |
+ if (this.finchString_) { |
+ // Finch trial overrides the normal display string. |
+ this.dangerDesc_.textContent = this.finch_string_; |
asanka
2013/08/09 19:35:15
this.finchString_
felt
2013/08/09 20:13:37
Done.
|
+ } |
this.danger_.style.display = 'block'; |
this.safe_.style.display = 'none'; |
} else { |