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

Unified Diff: chrome/common/content_settings_pattern.h

Issue 8676020: Detect invalid content settings pattern that were not detected yet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move one more check to the Validate method Created 9 years, 1 month 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/common/content_settings_pattern.h
diff --git a/chrome/common/content_settings_pattern.h b/chrome/common/content_settings_pattern.h
index 187ec2439687553c8c748dcdea0bc8d643c9685d..1bc2afd6570187748ee8afb56ec514d3476998e4 100644
--- a/chrome/common/content_settings_pattern.h
+++ b/chrome/common/content_settings_pattern.h
@@ -219,8 +219,9 @@ class ContentSettingsPattern {
virtual ContentSettingsPattern Build() OVERRIDE;
private:
// Canonicalizes the pattern parts so that they are ASCII only, either
- // in original (if it was already ASCII) or punycode form.
- static void Canonicalize(PatternParts* parts);
+ // in original (if it was already ASCII) or punycode form. Returns false if
+ // the pattern parts are not valid.
Bernhard Bauer 2011/11/24 15:50:32 Canonicalize seems to use a different definition o
markusheintz_ 2011/11/24 16:37:51 I rephrased it.
+ static bool Canonicalize(PatternParts* parts);
// Returns true when the pattern |parts| represent a valid pattern.
static bool Validate(const PatternParts& parts);
« no previous file with comments | « no previous file | chrome/common/content_settings_pattern.cc » ('j') | chrome/common/content_settings_pattern_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698