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

Unified Diff: components/sync_driver/device_info_service.cc

Issue 1468013002: ScopedPtrMap -> std::map from /component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 1 month 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/device_info_service.h ('k') | no next file » | 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 fb4511290888074a27c5cc2d0705bea62fc5d753..29a4d19314808b6bc9f8b3208881028d18e740c7 100644
--- a/components/sync_driver/device_info_service.cc
+++ b/components/sync_driver/device_info_service.cc
@@ -179,8 +179,7 @@ void DeviceInfoService::StoreSpecifics(
scoped_ptr<DeviceInfoSpecifics> specifics) {
DVLOG(1) << "Storing DEVICE_INFO for " << specifics->client_name()
<< " with ID " << specifics->cache_guid();
- const std::string& key = specifics->cache_guid();
- all_data_.set(key, specifics.Pass());
+ all_data_[specifics->cache_guid()] = std::move(specifics);
}
void DeviceInfoService::DeleteSpecifics(const std::string& client_id) {
« no previous file with comments | « components/sync_driver/device_info_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698