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

Side by Side Diff: chrome/browser/profile_resetter/automatic_profile_resetter_factory.h

Issue 271673006: Eliminate all code related to the AutomaticProfileResetter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit from dbeam@, using new tracked preference deprecation. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_FACTORY_H_
6 #define CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_FACTORY_H_
7
8 #include "base/basictypes.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10
11 template <typename T>
12 struct DefaultSingletonTraits;
13
14 class PrefRegistrySimple;
15
16 namespace content {
17 class BrowserContext;
18 }
19
20 namespace user_prefs {
21 class PrefRegistrySyncable;
22 }
23
24 class AutomaticProfileResetter;
25
26 class AutomaticProfileResetterFactory
27 : public BrowserContextKeyedServiceFactory {
28 public:
29 static AutomaticProfileResetter* GetForBrowserContext(
30 content::BrowserContext* context);
31 static AutomaticProfileResetterFactory* GetInstance();
32
33 // Registers Local State preferences.
34 static void RegisterPrefs(PrefRegistrySimple* registry);
35
36 private:
37 friend struct DefaultSingletonTraits<AutomaticProfileResetterFactory>;
38
39 AutomaticProfileResetterFactory();
40 virtual ~AutomaticProfileResetterFactory();
41
42 // BrowserContextKeyedServiceFactory:
43 virtual KeyedService* BuildServiceInstanceFor(
44 content::BrowserContext* context) const OVERRIDE;
45
46 // BrowserContextKeyedBaseFactory:
47 virtual void RegisterProfilePrefs(
48 user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
49 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
50 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
51
52 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterFactory);
53 };
54
55 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698