| Index: url/origin.cc
|
| diff --git a/url/origin.cc b/url/origin.cc
|
| index 97e24f208d5b2098df01078615a7791503d30fbf..4d5d093735ee18a4c10dad99fa542c84d70946ad 100644
|
| --- a/url/origin.cc
|
| +++ b/url/origin.cc
|
| @@ -72,6 +72,12 @@ bool Origin::IsSameOriginWith(const Origin& other) const {
|
| return tuple_.Equals(other.tuple_);
|
| }
|
|
|
| +bool Origin::DomainIs(base::StringPiece lower_ascii_domain) const {
|
| + if (unique_ || lower_ascii_domain.empty() || tuple_.host().empty())
|
| + return false;
|
| + return url::DomainIs(tuple_.host(), lower_ascii_domain);
|
| +}
|
| +
|
| bool Origin::operator<(const Origin& other) const {
|
| return tuple_ < other.tuple_;
|
| }
|
|
|