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

Unified Diff: chrome/browser/resources/md_feedback/feedback_container.js

Issue 2190653003: [Md Feedback] Add initial data population for dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 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_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') : '';
},
});

Powered by Google App Engine
This is Rietveld 408576698