OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |