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

Unified Diff: sync/internal_api/attachments/attachment_uploader_impl_unittest.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: sync/internal_api/attachments/attachment_uploader_impl_unittest.cc
diff --git a/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc b/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc
index d8cf8930e28f2e53344d4971975cadd8a32466b8..e3e1058c9658907a84daa231f6256e0d2caca28e 100644
--- a/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc
+++ b/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/internal_api/public/attachments/attachment_uploader_impl.h"
-
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -29,6 +28,7 @@
#include "net/test/embedded_test_server/http_response.h"
#include "net/url_request/url_request_test_util.h"
#include "sync/api/attachments/attachment.h"
+#include "sync/internal_api/public/attachments/attachment_uploader_impl.h"
Nicolas Zea 2015/12/18 23:46:54 keep up top
#include "sync/internal_api/public/attachments/attachment_util.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/protocol/sync.pb.h"
@@ -397,7 +397,7 @@ scoped_ptr<HttpResponse> RequestHandler::HandleRequest(
scoped_ptr<BasicHttpResponse> response(new BasicHttpResponse);
response->set_code(GetStatusCode());
response->set_content_type("text/plain");
- return response.Pass();
+ return std::move(response);
}
void RequestHandler::SetStatusCode(const net::HttpStatusCode& status_code) {

Powered by Google App Engine
This is Rietveld 408576698