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

Unified Diff: chrome/common/cloud_print/cloud_print_helpers.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 | « chrome/browser/web_applications/web_app.cc ('k') | chrome/renderer/app_categorizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/cloud_print/cloud_print_helpers.cc
diff --git a/chrome/common/cloud_print/cloud_print_helpers.cc b/chrome/common/cloud_print/cloud_print_helpers.cc
index 9a2a00a431fd3b74e51f1dbd55a6ba9affc399f2..0092b9f6f7362d5cf6cd6ea40ece291389347076 100644
--- a/chrome/common/cloud_print/cloud_print_helpers.cc
+++ b/chrome/common/cloud_print/cloud_print_helpers.cc
@@ -51,7 +51,7 @@ std::string HashPrinterTags(const PrinterTags& printer_tags) {
std::string AppendPathToUrl(const GURL& url, const std::string& path) {
DCHECK_NE(path[0], '/');
- std::string ret = url.path();
+ std::string ret = url.path().as_string();
if (url.has_path() && (ret.back() != '/'))
ret += '/';
ret += path;
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/renderer/app_categorizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698