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

Unified Diff: components/domain_reliability/util.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/dom_distiller/core/page_features.cc ('k') | components/history/core/browser/top_sites_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/util.cc
diff --git a/components/domain_reliability/util.cc b/components/domain_reliability/util.cc
index bf2a2cff7cf419d5cb77a0d0f0852ad7aecc7d13..42e41e02cc28093aa02110c299b197cf358820da 100644
--- a/components/domain_reliability/util.cc
+++ b/components/domain_reliability/util.cc
@@ -173,7 +173,7 @@ GURL SanitizeURLForReport(const GURL& beacon_url,
if (CanReportFullBeaconURLToCollector(beacon_url, collector_url))
return beacon_url.GetAsReferrer();
- std::string path = beacon_url.path();
+ std::string path = beacon_url.path().as_string();
const std::string empty_path;
const std::string* longest_path_prefix = &empty_path;
for (const std::string* path_prefix : path_prefixes) {
« no previous file with comments | « components/dom_distiller/core/page_features.cc ('k') | components/history/core/browser/top_sites_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698