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

Unified Diff: chromeos/timezone/timezone_unittest.cc

Issue 1556773002: Convert Pass()→std::move() in //chromeos (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
« no previous file with comments | « chromeos/timezone/timezone_request.cc ('k') | chromeos/tools/onc_validator/onc_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/timezone/timezone_unittest.cc
diff --git a/chromeos/timezone/timezone_unittest.cc b/chromeos/timezone/timezone_unittest.cc
index 37c608c8855bdfbdcf0f2f651bfdf720f5395f24..b26ae54acb5efe02d41826f54154c4645395fd2b 100644
--- a/chromeos/timezone/timezone_unittest.cc
+++ b/chromeos/timezone/timezone_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <stddef.h>
+#include <utility>
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
@@ -118,7 +119,7 @@ class TestTimeZoneAPIURLFetcherCallback {
new net::HttpResponseHeaders(std::string());
download_headers->AddHeader("Content-Type: application/json");
fetcher->set_response_headers(download_headers);
- return fetcher.Pass();
+ return fetcher;
}
void Initialize(net::FakeURLFetcherFactory* factory) {
@@ -177,7 +178,7 @@ class TimeZoneReceiver {
void OnRequestDone(scoped_ptr<TimeZoneResponseData> timezone,
bool server_error) {
- timezone_ = timezone.Pass();
+ timezone_ = std::move(timezone);
server_error_ = server_error;
message_loop_runner_->Quit();
« no previous file with comments | « chromeos/timezone/timezone_request.cc ('k') | chromeos/tools/onc_validator/onc_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698