Chromium Code Reviews| Index: net/dns/mock_host_resolver.cc |
| diff --git a/net/dns/mock_host_resolver.cc b/net/dns/mock_host_resolver.cc |
| index a1d46d06d3417adb2e970ea1e061553a3ee28c5a..83712ad6deacecb4e6980667719663ae6cf6273a 100644 |
| --- a/net/dns/mock_host_resolver.cc |
| +++ b/net/dns/mock_host_resolver.cc |
| @@ -351,8 +351,8 @@ int RuleBasedHostResolverProc::Resolve(const std::string& host, |
| // in the rule's host_resolver_flags. However, the rule may have additional |
| // flags specified, in which case the flags should still be considered a |
| // match. |
| - bool matches_flags = (r->host_resolver_flags & host_resolver_flags) == |
| - host_resolver_flags; |
| + HostResolverFlags flags = host_resolver_flags & ~HOST_RESOLVER_SYSTEM_ONLY; |
|
szym
2013/09/18 15:46:45
The comment above this statement does not match. S
|
| + bool matches_flags = (r->host_resolver_flags & flags) == flags; |
| if (matches_flags && matches_address_family && |
| MatchPattern(host, r->host_pattern)) { |
| if (r->latency_ms != 0) { |