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

Unified Diff: components/sync_driver/device_info_service.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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 | « components/sync_driver/about_sync_util.cc ('k') | components/sync_driver/device_info_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/device_info_service.cc
diff --git a/components/sync_driver/device_info_service.cc b/components/sync_driver/device_info_service.cc
index 933ff1ecf21864c8cfe419790135f8fbf84a8173..1063babf378b6dc169e4c0bc38865781d039ffe3 100644
--- a/components/sync_driver/device_info_service.cc
+++ b/components/sync_driver/device_info_service.cc
@@ -4,6 +4,7 @@
#include "components/sync_driver/device_info_service.h"
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -100,7 +101,7 @@ ScopedVector<DeviceInfo> DeviceInfoService::GetAllDeviceInfo() const {
list.push_back(CreateDeviceInfo(*iter->second));
}
- return list.Pass();
+ return list;
}
void DeviceInfoService::AddObserver(Observer* observer) {
@@ -132,7 +133,7 @@ void DeviceInfoService::UpdateLocalDeviceBackupTime(base::Time backup_time) {
// EntityMetadata, or CommitRequestData.
// TODO(skym): Call ProcessChanges on SMTP.
// TODO(skym): Persist metadata and data.
- StoreSpecifics(new_specifics.Pass());
+ StoreSpecifics(std::move(new_specifics));
}
// Don't call NotifyObservers() because backup time is not part of
« no previous file with comments | « components/sync_driver/about_sync_util.cc ('k') | components/sync_driver/device_info_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698