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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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/settings/passwords_and_forms_page/credit_card_edit_dialog.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js b/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js
index 9ee7c53ef69d1f86b069d0e418b9b0045d4db233..922c08eb137fcdecab409c65ad4643c0f35afec1 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js
@@ -34,7 +34,7 @@ Polymer({
monthList_: {
type: Array,
value: [
- '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12',
+ '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'
],
},
@@ -61,9 +61,10 @@ Polymer({
*/
checkIfCardExpired_: function(expirationMonth_, expirationYear_) {
var now = new Date();
- return (expirationYear_ < now.getFullYear() ||
- (expirationYear_ == now.getFullYear() &&
- expirationMonth_ <= now.getMonth()));
+ return (
+ expirationYear_ < now.getFullYear() ||
+ (expirationYear_ == now.getFullYear() &&
+ expirationMonth_ <= now.getMonth()));
},
/** @override */
@@ -127,8 +128,8 @@ Polymer({
// If the card is expired, reflect the error to the user.
// Otherwise, update the card, save and close the dialog.
- if (!this.checkIfCardExpired_(this.expirationMonth_,
- this.expirationYear_)) {
+ if (!this.checkIfCardExpired_(
+ this.expirationMonth_, this.expirationYear_)) {
this.creditCard.expirationYear = this.expirationYear_;
this.creditCard.expirationMonth = this.expirationMonth_;
this.fire('save-credit-card', this.creditCard);

Powered by Google App Engine
This is Rietveld 408576698