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: chrome/browser/extensions/extension_action_manager.h

Issue 2466523002: Remove some linked_ptr c/b/extension (Closed)
Patch Set: review 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/extension_action_manager.h
diff --git a/chrome/browser/extensions/extension_action_manager.h b/chrome/browser/extensions/extension_action_manager.h
index 3e6569687430435edc373b1eebeb4f3173f5a3b7..6693d8173487a815d2ce0799daed70ea942d6b9c 100644
--- a/chrome/browser/extensions/extension_action_manager.h
+++ b/chrome/browser/extensions/extension_action_manager.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_MANAGER_H_
#include <map>
+#include <memory>
#include <string>
#include "base/scoped_observer.h"
@@ -71,7 +72,8 @@ class ExtensionActionManager : public KeyedService,
// ExtensionAction is first requested, and the entries are removed when the
// extension is unloaded. Not every extension has a page action or browser
// action.
- typedef std::map<std::string, linked_ptr<ExtensionAction> > ExtIdToActionMap;
+ using ExtIdToActionMap =
+ std::map<std::string, std::unique_ptr<ExtensionAction>>;
mutable ExtIdToActionMap page_actions_;
mutable ExtIdToActionMap browser_actions_;
mutable ExtIdToActionMap system_indicators_;

Powered by Google App Engine
This is Rietveld 408576698