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

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

Issue 2682023002: [MD settings] allow site exceptions without pattern wildcard (Closed)
Patch Set: Created 3 years, 10 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 | « chrome/browser/resources/settings/site_settings/add_site_dialog.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/site_settings/site_settings_behavior.js
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_behavior.js b/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
index 737d0e4463a8a0971228acc2ad5f9f6464c53d61..936596566dad43bd42fa890c0abd2a44335200dc 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
@@ -61,25 +61,6 @@ var SiteSettingsBehaviorImpl = {
},
/**
- * Adds the wildcard prefix to a pattern string (if missing).
- * @param {string} pattern The pattern to add the wildcard to.
- * @return {string} The resulting pattern.
- * @private
- */
- addPatternWildcard: function(pattern) {
- if (pattern.indexOf('[*.]') > -1)
- return pattern;
- if (pattern.startsWith('http://'))
- return pattern.replace('http://', 'http://[*.]');
- else if (pattern.startsWith('https://'))
- return pattern.replace('https://', 'https://[*.]');
- else if (pattern.startsWith('chrome-extension://'))
- return pattern; // No need for a wildcard for this.
- else
- return '[*.]' + pattern;
- },
-
- /**
* Removes the wildcard prefix from a pattern string.
* @param {string} pattern The pattern to remove the wildcard from.
* @return {string} The resulting pattern.
« no previous file with comments | « chrome/browser/resources/settings/site_settings/add_site_dialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698