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

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

Issue 2269963003: Site Settings Desktop: Fix bug with deleting manually added exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/site_settings/site_details.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c149df5e1f1769d0500f7ca7af5261e04de6c611..e7ceeed3a5363371a2980eb12ebdfa2e3e22affa 100644
--- a/chrome/browser/resources/settings/site_settings/add_site_dialog.js
+++ b/chrome/browser/resources/settings/site_settings/add_site_dialog.js
@@ -40,7 +40,7 @@ Polymer({
* @private
*/
validate_: function() {
- var pattern = this.addPatternWildcard_(this.site_);
+ var pattern = this.addPatternWildcard(this.site_);
this.browserProxy.isPatternValid(pattern).then(function(isValid) {
this.$.add.disabled = !isValid;
}.bind(this));
@@ -59,7 +59,7 @@ Polymer({
onSubmit_: function() {
if (this.$.add.disabled)
return; // Can happen when Enter is pressed.
- var pattern = this.addPatternWildcard_(this.site_);
+ var pattern = this.addPatternWildcard(this.site_);
this.setCategoryPermissionForOrigin(
pattern, pattern, this.category, this.allowException ?
settings.PermissionValues.ALLOW : settings.PermissionValues.BLOCK);
« no previous file with comments | « no previous file | chrome/browser/resources/settings/site_settings/site_details.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698