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

Side by Side Diff: chrome/browser/resources/settings/appearance_page/home_url_input.js

Issue 2984843003: MD Settings: Convert all usages of .bind(this) to use ES6 arrow function. (Closed)
Patch Set: Resolve conflicts. Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * `home-url-input` is a single-line text field intending to be used with 7 * `home-url-input` is a single-line text field intending to be used with
8 * prefs.homepage 8 * prefs.homepage
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return disabled || this.isPrefEnforced(); 127 return disabled || this.isPrefEnforced();
128 }, 128 },
129 129
130 /** @private */ 130 /** @private */
131 validate_: function() { 131 validate_: function() {
132 if (this.value == '') { 132 if (this.value == '') {
133 this.invalid = false; 133 this.invalid = false;
134 return; 134 return;
135 } 135 }
136 136
137 this.browserProxy_.validateStartupPage(this.value).then(function(isValid) { 137 this.browserProxy_.validateStartupPage(this.value).then(isValid => {
138 this.invalid = !isValid; 138 this.invalid = !isValid;
139 }.bind(this)); 139 });
140 }, 140 },
141 }); 141 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698