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

Unified Diff: chrome/browser/extensions/api/settings_private/settings_private_event_router.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/api/settings_private/settings_private_event_router.h
diff --git a/chrome/browser/extensions/api/settings_private/settings_private_event_router.h b/chrome/browser/extensions/api/settings_private/settings_private_event_router.h
index 7738b978a7200ad555c2bcc47799a3fd8fd0d936..06477b508931b4df7b8caa5bf4b07442a104b34c 100644
--- a/chrome/browser/extensions/api/settings_private/settings_private_event_router.h
+++ b/chrome/browser/extensions/api/settings_private/settings_private_event_router.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_ROUTER_H_
#define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_ROUTER_H_
+#include <memory>
+
#include "base/macros.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/extensions/api/settings_private/prefs_util.h"
@@ -57,9 +59,9 @@ class SettingsPrivateEventRouter : public KeyedService,
PrefChangeRegistrar* FindRegistrarForPref(const std::string& pref_name);
- typedef std::map<std::string,
- linked_ptr<chromeos::CrosSettings::ObserverSubscription>>
- SubscriptionMap;
+ using SubscriptionMap =
+ std::map<std::string,
+ std::unique_ptr<chromeos::CrosSettings::ObserverSubscription>>;
SubscriptionMap cros_settings_subscription_map_;
content::BrowserContext* context_;

Powered by Google App Engine
This is Rietveld 408576698