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

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

Issue 553573003: Compile chrome://settings, part 3: 167 proper errors left (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@G_options_errors_1
Patch Set: mark narrow type in createItem JSDoc 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/confirm_dialog.js
diff --git a/chrome/browser/resources/options/confirm_dialog.js b/chrome/browser/resources/options/confirm_dialog.js
index cbce2751163a599b408ad75f71b1f3ad68f71ba1..347c056b4b228a1524c279126df3379f3f1c3196 100644
--- a/chrome/browser/resources/options/confirm_dialog.js
+++ b/chrome/browser/resources/options/confirm_dialog.js
@@ -18,18 +18,18 @@ cr.define('options', function() {
* @param {HTMLInputElement} cancelButton The cancellation button element.
* @param {string} pref The pref that requires confirmation.
* @param {string} metric User metrics identifier.
- * @param {string} confirmed_pref A pref used to remember whether the user has
- * confirmed the dialog before. This ensures that the user is presented
- * with the dialog only once. If left |undefined| or |null|, the dialog
+ * @param {string=} opt_confirmed_pref A pref used to remember whether the
Dan Beam 2014/09/11 02:53:09 nit: opt_confirmedPref (confirmed_pref -> confirme
Vitaly Pavlenko 2014/09/11 04:16:25 Done.
+ * user has confirmed the dialog before. This ensures that the user is
+ * presented with the dialog only once. If left |undefined|, the dialog
* will pop up every time the user attempts to set |pref| to |true|.
* @extends {options.SettingsDialog}
*/
function ConfirmDialog(name, title, pageDivName, okButton, cancelButton, pref,
- metric, confirmed_pref) {
+ metric, opt_confirmed_pref) {
SettingsDialog.call(this, name, title, pageDivName, okButton, cancelButton);
this.pref = pref;
this.metric = metric;
- this.confirmed_pref = confirmed_pref;
+ this.confirmed_pref = opt_confirmed_pref;
Dan Beam 2014/09/11 02:53:09 nit: this.confirmed_pref -> this.confirmedPref_
Vitaly Pavlenko 2014/09/11 04:16:25 Done.
this.confirmed_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698