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

Unified Diff: google_apis/drive/request_util.cc

Issue 1873663002: Convert //google_apis from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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/request_util.cc
diff --git a/google_apis/drive/request_util.cc b/google_apis/drive/request_util.cc
index cfaaa7da8c6c29cb01df2544e4ecd5f817b26fd2..4dcc8347dc150a685cfc205a564506b952dae629 100644
--- a/google_apis/drive/request_util.cc
+++ b/google_apis/drive/request_util.cc
@@ -25,9 +25,9 @@ std::string GenerateIfMatchHeader(const std::string& etag) {
return etag.empty() ? kIfMatchAllHeader : (kIfMatchHeaderPrefix + etag);
}
-scoped_ptr<base::DictionaryValue> CreateParentValue(
+std::unique_ptr<base::DictionaryValue> CreateParentValue(
const std::string& file_id) {
- scoped_ptr<base::DictionaryValue> parent(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> parent(new base::DictionaryValue);
parent->SetString("kind", kParentLinkKind);
parent->SetString("id", file_id);
return parent;

Powered by Google App Engine
This is Rietveld 408576698