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

Unified Diff: components/sync/engine_impl/attachments/attachment_uploader_impl.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/driver/sync_stopped_reporter.cc ('k') | components/sync/engine_impl/sync_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/attachments/attachment_uploader_impl.cc
diff --git a/components/sync/engine_impl/attachments/attachment_uploader_impl.cc b/components/sync/engine_impl/attachments/attachment_uploader_impl.cc
index 2e8ff0025b37829352b8aa144c4560beb5cab187..6c58d4cf5753b44f72f725f753479ddbd1d4494b 100644
--- a/components/sync/engine_impl/attachments/attachment_uploader_impl.cc
+++ b/components/sync/engine_impl/attachments/attachment_uploader_impl.cc
@@ -332,7 +332,7 @@ void AttachmentUploaderImpl::UploadAttachment(const Attachment& attachment,
GURL AttachmentUploaderImpl::GetURLForAttachmentId(
const GURL& sync_service_url,
const AttachmentId& attachment_id) {
- std::string path = sync_service_url.path();
+ std::string path = sync_service_url.path().as_string();
if (path.empty() || *path.rbegin() != '/') {
path += '/';
}
« no previous file with comments | « components/sync/driver/sync_stopped_reporter.cc ('k') | components/sync/engine_impl/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698