Index: chrome/browser/resources/md_feedback/feedback_container.js |
diff --git a/chrome/browser/resources/md_feedback/feedback_container.js b/chrome/browser/resources/md_feedback/feedback_container.js |
index 7caa6ab00318f7fa489f829ad5ebf3b98e956b2b..5b1f8bf2fc5454760856527c36fd99232978487a 100644 |
--- a/chrome/browser/resources/md_feedback/feedback_container.js |
+++ b/chrome/browser/resources/md_feedback/feedback_container.js |
@@ -8,14 +8,29 @@ |
Polymer({ |
is: 'feedback-container', |
- /** |
- * Retrieves the feedback privacy note text, if it exists. On non-officially |
- * branded builds, the string is not defined. |
- * |
- * @return {string} Privacy note text. |
- */ |
- getPrivacyNote_: function() { |
- return loadTimeData.valueExists('privacyNote') ? |
- this.i18n('privacyNote') : ''; |
+ properties: { |
+ /** |
+ * The user's email, if available. |
+ * @type {string|undefined} |
+ */ |
+ email: { |
+ type: String, |
+ }, |
+ |
+ /** |
+ * The URL of the page the user was on before sending feedback. |
+ * @type {string|undefined} |
+ */ |
+ url: { |
+ type: String, |
+ }, |
+ }, |
+ |
+ ready: function() { |
+ // Retrieves the feedback privacy note text, if it exists. On non-official |
+ // branded builds, the string is not defined. |
+ this.$.privacyNote.innerHTML = |
+ loadTimeData.valueExists('privacyNote') ? |
+ loadTimeData.getString('privacyNote') : ''; |
}, |
}); |