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

Unified Diff: chrome/browser/resources/options/chromeos/accounts_user_name_edit.js

Issue 8773046: [cros] Display emails of users are stored in a separate dictionary in Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years 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/options/chromeos/accounts_user_name_edit.js
diff --git a/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js b/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js
index 75baf7df7c7610c327aeb4a00acd719fa9ee20af..025db255da7ce571f34e4723d6c14715bc992a91 100644
--- a/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js
+++ b/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js
@@ -60,7 +60,7 @@ cr.define('options.accounts', function() {
* more times in a row.)
*
* @param {string} str A string to parse.
- * @return {Object} User info parsed from the string.
+ * @return {{name: string, email: string}} User info parsed from the string.
*/
parse: function(str) {
const format1 = new RegExp(format1String);
@@ -71,8 +71,7 @@ cr.define('options.accounts', function() {
if (matches) {
return {
name: matches[1],
- email: matches[1] + '@gmail.com',
- owner:false
+ email: matches[1] + '@gmail.com'
};
}
@@ -80,8 +79,7 @@ cr.define('options.accounts', function() {
if (matches) {
return {
name: matches[1],
- email: matches[1] + '@' + matches[2],
- owner:false
+ email: matches[1] + '@' + matches[2]
};
}
@@ -89,8 +87,7 @@ cr.define('options.accounts', function() {
if (matches) {
return {
name: matches[1],
- email: matches[2],
- owner:false
+ email: matches[2]
};
}

Powered by Google App Engine
This is Rietveld 408576698