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

Unified Diff: chrome/browser/resources/settings/site_settings/add_site_dialog.js

Issue 2309283002: Site Settings Desktop: Fix issues with entering URL patterns. (Closed)
Patch Set: Created 4 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/settings/site_settings/add_site_dialog.js
diff --git a/chrome/browser/resources/settings/site_settings/add_site_dialog.js b/chrome/browser/resources/settings/site_settings/add_site_dialog.js
index e7ceeed3a5363371a2980eb12ebdfa2e3e22affa..0f5b8d30621554240fa139b6735a79ad19c74739 100644
--- a/chrome/browser/resources/settings/site_settings/add_site_dialog.js
+++ b/chrome/browser/resources/settings/site_settings/add_site_dialog.js
@@ -40,8 +40,7 @@ Polymer({
* @private
*/
validate_: function() {
- var pattern = this.addPatternWildcard(this.site_);
Finnur 2016/09/05 11:23:17 Adding the wildcard prefix during validate is wron
dschuyler 2016/09/06 18:20:29 Acknowledged.
- this.browserProxy.isPatternValid(pattern).then(function(isValid) {
+ this.browserProxy.isPatternValid(this.site_).then(function(isValid) {
this.$.add.disabled = !isValid;
}.bind(this));
},

Powered by Google App Engine
This is Rietveld 408576698