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

Unified Diff: components/sync_driver/device_info_service.h

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/policy/core/common/schema.cc ('k') | components/sync_driver/device_info_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.h
diff --git a/components/sync_driver/device_info_service.h b/components/sync_driver/device_info_service.h
index af57d3cebca8f904d1d4d099dc2d0e17d5ac479f..4b658090357a5aef4f8580deb40ddc4aa6e5cddc 100644
--- a/components/sync_driver/device_info_service.h
+++ b/components/sync_driver/device_info_service.h
@@ -5,10 +5,10 @@
#ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_
#define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_
+#include <map>
#include <string>
#include <vector>
-#include "base/containers/scoped_ptr_map.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
@@ -107,9 +107,8 @@ class DeviceInfoService : public syncer_v2::ModelTypeService,
// TODO(skym): Switch to use client tag hash instead of cache guid as key.
// Cache of all syncable and local data, stored by device cache guid.
- typedef base::ScopedPtrMap<std::string,
- scoped_ptr<sync_pb::DeviceInfoSpecifics>>
- ClientIdToSpecifics;
+ using ClientIdToSpecifics =
+ std::map<std::string, scoped_ptr<sync_pb::DeviceInfoSpecifics>>;
ClientIdToSpecifics all_data_;
// Registered observers, not owned.
« no previous file with comments | « components/policy/core/common/schema.cc ('k') | components/sync_driver/device_info_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698