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

Unified Diff: url/gurl.h

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 | « ui/base/webui/web_ui_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index 5753230db769ad079ac1041a8d5025d441898f58..0cea864f779ac47c4e2e8bfbf985c49b2ab78a9c 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -323,9 +323,8 @@ class URL_EXPORT GURL {
bool has_path() const {
return parsed_.path.len >= 0;
}
- std::string path() const {
- return ComponentString(parsed_.path);
- }
+
+ base::StringPiece path() const { return ComponentStringPiece(parsed_.path); }
base::StringPiece path_piece() const {
return ComponentStringPiece(parsed_.path);
}
« no previous file with comments | « ui/base/webui/web_ui_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698