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

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

Issue 8273023: Remove an unnecessary comparison in OriginIdentifierValueMap::EntryMapKey::operator< (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For real this time Created 9 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc
diff --git a/chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc b/chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc
index 36dd81efb3d1bb7e5149e106dc20e48d83580d7f..cac5cf491bea4f193100b811c061cce92584c9f8 100644
--- a/chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc
+++ b/chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc
@@ -58,10 +58,8 @@ OriginIdentifierValueMap::EntryMapKey::EntryMapKey(
bool OriginIdentifierValueMap::EntryMapKey::operator<(
const OriginIdentifierValueMap::EntryMapKey& other) const {
- if (content_type < other.content_type)
- return true;
- else if (other.content_type > content_type)
- return false;
+ if (content_type != other.content_type)
+ return content_type < other.content_type;
return (resource_identifier < other.resource_identifier);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698