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

Unified Diff: chrome/browser/resources/options/autofill_options_list.js

Issue 543493002: Compile chrome://settings, part 2: reduce from 950 to 400 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@F_settings
Patch Set: rebase? rebase! Created 6 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/options/autofill_options_list.js
diff --git a/chrome/browser/resources/options/autofill_options_list.js b/chrome/browser/resources/options/autofill_options_list.js
index 8fd7fdb6a09726eb4b28bac4e5e4e242a06850c2..aa3198dde05e076c6ae43459c73b7bd84d2bff83 100644
--- a/chrome/browser/resources/options/autofill_options_list.js
+++ b/chrome/browser/resources/options/autofill_options_list.js
@@ -8,6 +8,9 @@ cr.define('options.autofillOptions', function() {
/** @const */ var InlineEditableItem = options.InlineEditableItem;
/** @const */ var InlineEditableItemList = options.InlineEditableItemList;
+ /**
+ * @return {!HTMLButtonElement}
+ */
function AutofillEditProfileButton(guid, edit) {
var editButtonEl = document.createElement('button');
editButtonEl.className = 'list-inline-button custom-appearance';
@@ -55,7 +58,7 @@ cr.define('options.autofillOptions', function() {
this.contentElement.appendChild(label);
// The 'Edit' button.
- var editButtonEl = new AutofillEditProfileButton(
+ var editButtonEl = AutofillEditProfileButton(
this.guid,
AutofillOptions.loadAddressEditor);
this.contentElement.appendChild(editButtonEl);
@@ -100,7 +103,7 @@ cr.define('options.autofillOptions', function() {
this.contentElement.appendChild(icon);
// The 'Edit' button.
- var editButtonEl = new AutofillEditProfileButton(
+ var editButtonEl = AutofillEditProfileButton(
this.guid,
AutofillOptions.loadCreditCardEditor);
this.contentElement.appendChild(editButtonEl);
@@ -219,8 +222,9 @@ cr.define('options.autofillOptions', function() {
/**
* Creates a new name value list item.
- * @param {AutofillNameValuesList} list The parent list of this item.
- * @param {array} entry An array of [first, middle, last] names.
+ * @param {options.autofillOptions.AutofillNameValuesList} list The parent
+ * list of this item.
+ * @param {Array.<string>} entry An array of [first, middle, last] names.
* @constructor
* @extends {options.ValuesListItem}
*/
« no previous file with comments | « chrome/browser/resources/options/autofill_options.js ('k') | chrome/browser/resources/options/browser_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698