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

Side by Side Diff: google_apis/drive/request_util.cc

Issue 1547233002: Convert Pass()→std::move() in //google_apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « google_apis/drive/files_list_request_runner.cc ('k') | google_apis/drive/test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "google_apis/drive/request_util.h" 5 #include "google_apis/drive/request_util.h"
6 6
7 #include <string> 7 #include <string>
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 namespace google_apis { 10 namespace google_apis {
(...skipping 12 matching lines...) Expand all
23 23
24 std::string GenerateIfMatchHeader(const std::string& etag) { 24 std::string GenerateIfMatchHeader(const std::string& etag) {
25 return etag.empty() ? kIfMatchAllHeader : (kIfMatchHeaderPrefix + etag); 25 return etag.empty() ? kIfMatchAllHeader : (kIfMatchHeaderPrefix + etag);
26 } 26 }
27 27
28 scoped_ptr<base::DictionaryValue> CreateParentValue( 28 scoped_ptr<base::DictionaryValue> CreateParentValue(
29 const std::string& file_id) { 29 const std::string& file_id) {
30 scoped_ptr<base::DictionaryValue> parent(new base::DictionaryValue); 30 scoped_ptr<base::DictionaryValue> parent(new base::DictionaryValue);
31 parent->SetString("kind", kParentLinkKind); 31 parent->SetString("kind", kParentLinkKind);
32 parent->SetString("id", file_id); 32 parent->SetString("id", file_id);
33 return parent.Pass(); 33 return parent;
34 } 34 }
35 35
36 } // namespace util 36 } // namespace util
37 } // namespace google_apis 37 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/files_list_request_runner.cc ('k') | google_apis/drive/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698