#include "base/prefs/pref_service.h"
#include "base/synchronization/lock.h"
#include "chrome/browser/plugins/plugin_finder.h"
-#include "components/keyed_service/content/refcounted_browser_context_keyed_service.h"
+#include "components/keyed_service/core/refcounted_keyed_service.h"
class Profile;
// This class stores information about whether a plug-in or a plug-in group is
// enabled or disabled.
// Except where otherwise noted, it can be used on every thread.
-class PluginPrefs : public RefcountedBrowserContextKeyedService {
+class PluginPrefs : public RefcountedKeyedService {
public:
enum PolicyStatus {
NO_POLICY = 0, // Neither enabled or disabled by policy.
void set_profile(Profile* profile) { profile_ = profile; }
// RefCountedProfileKeyedBase method override.
- virtual void ShutdownOnUIThread() OVERRIDE;
+ void ShutdownOnUIThread() override;
private:
friend class base::RefCountedThreadSafe<PluginPrefs>;
std::map<base::FilePath, bool> state_;
};
- virtual ~PluginPrefs();
+ ~PluginPrefs() override;
// Called to update one of the policy_xyz patterns below when a
// preference changes.