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

Unified Diff: extensions/common/extension_api.h

Issue 2255953002: [Extensions] Make ExtensionAPI use unique_ptrs instead of linked_ptrs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 | « no previous file | extensions/common/extension_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_api.h
diff --git a/extensions/common/extension_api.h b/extensions/common/extension_api.h
index b8dee559e4b137d5f5d9bce923ae2eb072e0cfea..e876079b37858897adf6611bcfe679e5744fed8a 100644
--- a/extensions/common/extension_api.h
+++ b/extensions/common/extension_api.h
@@ -11,7 +11,6 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/linked_ptr.h"
#include "base/memory/singleton.h"
#include "base/strings/string_piece.h"
#include "base/values.h"
@@ -145,8 +144,8 @@ class ExtensionAPI {
UnloadedSchemaMap unloaded_schemas_;
// Schemas for each namespace.
- typedef std::map<std::string, linked_ptr<const base::DictionaryValue> >
- SchemaMap;
+ using SchemaMap =
+ std::map<std::string, std::unique_ptr<const base::DictionaryValue>>;
SchemaMap schemas_;
// FeatureProviders used for resolving dependencies.
« no previous file with comments | « no previous file | extensions/common/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698