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

Unified Diff: chrome/browser/resources/feedback/js/feedback.js

Issue 2728773003: Make email field in Feedback app uneditable (Closed)
Patch Set: More nits Created 3 years, 10 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
« no previous file with comments | « chrome/browser/resources/feedback/html/default.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/feedback/js/feedback.js
diff --git a/chrome/browser/resources/feedback/js/feedback.js b/chrome/browser/resources/feedback/js/feedback.js
index 6d06cc7b812bf8418dbb35989fc5dd0e1e8bafd4..6d8b39c7f939812d2915bcbe0adf9008dfec7df0 100644
--- a/chrome/browser/resources/feedback/js/feedback.js
+++ b/chrome/browser/resources/feedback/js/feedback.js
@@ -166,7 +166,7 @@ function sendReport() {
feedbackInfo.description = $('description-text').value;
feedbackInfo.pageUrl = $('page-url-text').value;
- feedbackInfo.email = $('user-email-text').value;
+ feedbackInfo.email = $('user-email-drop-down').value;
var useSystemInfo = false;
var useHistograms = false;
@@ -344,7 +344,13 @@ function initialize() {
});
chrome.feedbackPrivate.getUserEmail(function(email) {
- $('user-email-text').value = email;
+ var optionElement = document.createElement('option');
+ optionElement.value = email;
+ optionElement.text = email;
+ optionElement.selected = true;
+ // Make sure the "Report anonymously" option comes last.
+ $('user-email-drop-down').insertBefore(optionElement,
+ $('anonymous-user-option'));
});
// Initiate getting the system info.
« no previous file with comments | « chrome/browser/resources/feedback/html/default.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698