| Index: net/http/http_security_headers.cc
|
| diff --git a/net/http/http_security_headers.cc b/net/http/http_security_headers.cc
|
| index 8d0c1465307f8adb5da5eb61907e2a0b8b2d9da6..81a1dbfe6edf4dae8b5fdb4d7f8901fb7da14e8b 100644
|
| --- a/net/http/http_security_headers.cc
|
| +++ b/net/http/http_security_headers.cc
|
| @@ -323,21 +323,7 @@ bool ParseHPKPHeader(const std::string& value,
|
|
|
| *max_age = base::TimeDelta::FromSeconds(max_age_candidate);
|
| *include_subdomains = include_subdomains_candidate;
|
| - for (HashValueVector::const_iterator i = pins.begin();
|
| - i != pins.end(); ++i) {
|
| - bool found = false;
|
| -
|
| - for (HashValueVector::const_iterator j = hashes->begin();
|
| - j != hashes->end(); ++j) {
|
| - if (j->Equals(*i)) {
|
| - found = true;
|
| - break;
|
| - }
|
| - }
|
| -
|
| - if (!found)
|
| - hashes->push_back(*i);
|
| - }
|
| + hashes->swap(pins);
|
|
|
| return true;
|
| }
|
|
|