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

Side by Side Diff: chrome/browser/extensions/api/settings_private/settings_private_event_router.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/settings/cros_settings.h" 9 #include "chrome/browser/chromeos/settings/cros_settings.h"
10 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" 10 #include "chrome/browser/extensions/api/settings_private/prefs_util.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 PrefChangeRegistrar* FindRegistrarForPref(const std::string& pref_name); 58 PrefChangeRegistrar* FindRegistrarForPref(const std::string& pref_name);
59 59
60 typedef std::map<std::string, 60 typedef std::map<std::string,
61 linked_ptr<chromeos::CrosSettings::ObserverSubscription>> 61 linked_ptr<chromeos::CrosSettings::ObserverSubscription>>
62 SubscriptionMap; 62 SubscriptionMap;
63 SubscriptionMap cros_settings_subscription_map_; 63 SubscriptionMap cros_settings_subscription_map_;
64 64
65 content::BrowserContext* context_; 65 content::BrowserContext* context_;
66 bool listening_; 66 bool listening_;
67 67
68 scoped_ptr<PrefsUtil> prefs_util_; 68 std::unique_ptr<PrefsUtil> prefs_util_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateEventRouter); 70 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateEventRouter);
71 }; 71 };
72 72
73 } // namespace extensions 73 } // namespace extensions
74 74
75 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT _ROUTER_H_ 75 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT _ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698