Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2268)

Unified Diff: components/test_runner/mock_web_document_subresource_filter.cc

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/engine_impl/sync_manager_impl.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/mock_web_document_subresource_filter.cc
diff --git a/components/test_runner/mock_web_document_subresource_filter.cc b/components/test_runner/mock_web_document_subresource_filter.cc
index bdd1e53a04d6655b5e244380f65611b6b6685de5..f9f0cb2386e4c9881c6bdcccd8f8764783ab3b47 100644
--- a/components/test_runner/mock_web_document_subresource_filter.cc
+++ b/components/test_runner/mock_web_document_subresource_filter.cc
@@ -21,7 +21,7 @@ MockWebDocumentSubresourceFilter::~MockWebDocumentSubresourceFilter() {}
bool MockWebDocumentSubresourceFilter::allowLoad(
const blink::WebURL& resource_url,
blink::WebURLRequest::RequestContext /* ignored */) {
- const std::string resource_path(GURL(resource_url).path());
+ const base::StringPiece resource_path(GURL(resource_url).path());
return std::find_if(disallowed_path_suffixes_.begin(),
disallowed_path_suffixes_.end(),
[&resource_path](const std::string& suffix) {
« no previous file with comments | « components/sync/engine_impl/sync_manager_impl.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698