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

Unified Diff: chrome/browser/extensions/api/storage/sync_storage_backend.h

Issue 2466523002: Remove some linked_ptr c/b/extension (Closed)
Patch Set: Created 4 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
Index: chrome/browser/extensions/api/storage/sync_storage_backend.h
diff --git a/chrome/browser/extensions/api/storage/sync_storage_backend.h b/chrome/browser/extensions/api/storage/sync_storage_backend.h
index e126c2532fa4c348840209b365db743eee1d6d5a..e3b61ed4fdd7db0bf3404f2f30e2f2b89759ea96 100644
--- a/chrome/browser/extensions/api/storage/sync_storage_backend.h
+++ b/chrome/browser/extensions/api/storage/sync_storage_backend.h
@@ -13,7 +13,6 @@
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/macros.h"
-#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "components/sync/model/syncable_service.h"
#include "extensions/browser/api/storage/settings_observer.h"
@@ -87,8 +86,8 @@ class SyncStorageBackend : public syncer::SyncableService {
// A cache of ValueStore objects that have already been created.
// Ensure that there is only ever one created per extension.
- typedef std::map<std::string, linked_ptr<SyncableSettingsStorage> >
- StorageObjMap;
+ using StorageObjMap =
+ std::map<std::string, std::unique_ptr<SyncableSettingsStorage>>;
mutable StorageObjMap storage_objs_;
// Current sync model type. Either EXTENSION_SETTINGS or APP_SETTINGS.

Powered by Google App Engine
This is Rietveld 408576698