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

Unified Diff: chrome/browser/content_settings/content_settings_pattern.cc

Issue 7229005: Include port when creating a pattern for a HTTPS URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 6 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/content_settings/content_settings_pattern_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/content_settings_pattern.cc
diff --git a/chrome/browser/content_settings/content_settings_pattern.cc b/chrome/browser/content_settings/content_settings_pattern.cc
index 77b5036e7df8adc3f76a093e1591bae2e8f7f5e8..15a0e91693c8287bb97b46c31967d362539a6848 100644
--- a/chrome/browser/content_settings/content_settings_pattern.cc
+++ b/chrome/browser/content_settings/content_settings_pattern.cc
@@ -301,7 +301,10 @@ ContentSettingsPattern ContentSettingsPattern::FromURL(
// Unsupported scheme
}
if (url.port().empty()) {
- builder->WithPortWildcard();
+ if (url.SchemeIs(chrome::kHttpsScheme))
+ builder->WithPort(GetDefaultPort(chrome::kHttpsScheme));
+ else
+ builder->WithPortWildcard();
} else {
builder->WithPort(url.port());
}
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_pattern_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698