Commit 449ca301 authored by afakhry's avatar afakhry Committed by Commit bot

Prevent adding an empty email option in the feedback app in guest mode

BUG=699287
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2742103002
Cr-Commit-Position: refs/heads/master@{#456223}
parent 83d2305a
...@@ -344,6 +344,9 @@ function initialize() { ...@@ -344,6 +344,9 @@ function initialize() {
}); });
chrome.feedbackPrivate.getUserEmail(function(email) { chrome.feedbackPrivate.getUserEmail(function(email) {
// Never add an empty option.
if (!email)
return;
var optionElement = document.createElement('option'); var optionElement = document.createElement('option');
optionElement.value = email; optionElement.value = email;
optionElement.text = email; optionElement.text = email;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment