Chromium Code Reviews| Index: net/base/host_cache.h |
| =================================================================== |
| --- net/base/host_cache.h (revision 30053) |
| +++ net/base/host_cache.h (working copy) |
| @@ -42,9 +42,9 @@ |
| } |
| bool operator<(const Key& other) const { |
| - if (address_family < other.address_family) |
| - return true; |
| - return hostname < other.hostname; |
| + if (address_family == other.address_family) |
| + return hostname < other.hostname; |
| + return address_family < other.address_family; |
| } |
| std::string hostname; |