| Index: components/url_matcher/url_matcher.cc
|
| diff --git a/components/url_matcher/url_matcher.cc b/components/url_matcher/url_matcher.cc
|
| index 41d8c7b13c328ea47a63010063ee818218b36346..103a129880211e97ef11fcbf975b23e278b1c740 100644
|
| --- a/components/url_matcher/url_matcher.cc
|
| +++ b/components/url_matcher/url_matcher.cc
|
| @@ -233,8 +233,8 @@ bool URLMatcherCondition::IsMatch(
|
| return url.host().find(string_pattern_->pattern()) !=
|
| std::string::npos;
|
| case PATH_CONTAINS:
|
| - return url.path().find(string_pattern_->pattern()) !=
|
| - std::string::npos;
|
| + return url.path().as_string().find(string_pattern_->pattern()) !=
|
| + std::string::npos;
|
| case QUERY_CONTAINS:
|
| return url.query().find(string_pattern_->pattern()) !=
|
| std::string::npos;
|
| @@ -268,7 +268,7 @@ URLMatcherConditionFactory::~URLMatcherConditionFactory() {
|
| std::string URLMatcherConditionFactory::CanonicalizeURLForComponentSearches(
|
| const GURL& url) const {
|
| return kBeginningOfURL + CanonicalizeHostname(url.host()) + kEndOfDomain +
|
| - url.path() + kEndOfPath +
|
| + url.path().as_string() + kEndOfPath +
|
| (url.has_query() ? CanonicalizeQuery(url.query(), true, true)
|
| : std::string()) +
|
| kEndOfURL;
|
|
|