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

Unified Diff: components/cloud_devices/common/cloud_devices_urls.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
Index: components/cloud_devices/common/cloud_devices_urls.cc
diff --git a/components/cloud_devices/common/cloud_devices_urls.cc b/components/cloud_devices/common/cloud_devices_urls.cc
index b08cc6f087812623a2baff3e1480eecdc2d40073..ee1c2c4d1a1f7210302834f64ec54a78651f8de3 100644
--- a/components/cloud_devices/common/cloud_devices_urls.cc
+++ b/components/cloud_devices/common/cloud_devices_urls.cc
@@ -48,7 +48,7 @@ GURL GetCloudPrintRelativeURL(const std::string& relative_path) {
GURL url = GetCloudPrintURL();
std::string path;
static const char kURLPathSeparator[] = "/";
- base::TrimString(url.path(), kURLPathSeparator, &path);
+ base::TrimString(url.path().as_string(), kURLPathSeparator, &path);
std::string trimmed_path;
base::TrimString(relative_path, kURLPathSeparator, &trimmed_path);
path += kURLPathSeparator;
« no previous file with comments | « components/arc/intent_helper/intent_filter.cc ('k') | components/content_settings/core/common/content_settings_pattern.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698