Chromium Code Reviews| Index: chrome/browser/content_settings/content_settings_pattern.h |
| diff --git a/chrome/browser/content_settings/content_settings_pattern.h b/chrome/browser/content_settings/content_settings_pattern.h |
| index 4b55683c81d473f4e99e9afcfe1fc09d72a86723..d1185e2b7ac6581a7ca8b63f5c17c4308e727991 100644 |
| --- a/chrome/browser/content_settings/content_settings_pattern.h |
| +++ b/chrome/browser/content_settings/content_settings_pattern.h |
| @@ -122,6 +122,14 @@ class ContentSettingsPattern { |
| return Compare(other) == IDENTITY; |
| } |
| + bool operator < (const ContentSettingsPattern& other) const { |
|
Bernhard Bauer
2011/05/26 23:14:42
Nit: no space around the less-than-sign.
markusheintz_
2011/05/31 11:46:41
Done. Same below
|
| + return Compare(other) == SUCCESSOR; |
| + } |
| + |
| + bool operator > (const ContentSettingsPattern& other) const { |
| + return Compare(other) == PREDECESSOR; |
| + } |
| + |
| private: |
| friend class content_settings::PatternParser; |
| friend class ContentSettingsPatternParserTest_SerializePatterns_Test; |