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

Unified Diff: google_apis/drive/drive_api_requests.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: google_apis/drive/drive_api_requests.cc
diff --git a/google_apis/drive/drive_api_requests.cc b/google_apis/drive/drive_api_requests.cc
index 607c657f45320d4a6774e7bb62582b5d40cdeee0..9c45cdb3d121dba6676c4f0d6372077412b9d3bb 100644
--- a/google_apis/drive/drive_api_requests.cc
+++ b/google_apis/drive/drive_api_requests.cc
@@ -1311,7 +1311,8 @@ void BatchUploadRequest::MayCompletePrepare() {
break;
}
const std::string header = base::StringPrintf(
- kBatchUploadRequestFormat, method.c_str(), url.path().c_str(),
+ kBatchUploadRequestFormat, method.c_str(),
+ url.path().as_string().c_str(),
url_generator_.GetBatchUploadUrl().host().c_str(), type.c_str());
child->data_offset = header.size();
« no previous file with comments | « extensions/shell/browser/shell_nacl_browser_delegate.cc ('k') | google_apis/drive/drive_api_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698