OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" | 5 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "base/prefs/pref_registry_simple.h" | 8 #include "base/prefs/pref_registry_simple.h" |
9 #include "chrome/browser/profile_resetter/automatic_profile_resetter.h" | 9 #include "chrome/browser/profile_resetter/automatic_profile_resetter.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/search_engines/template_url_service_factory.h" | 11 #include "chrome/browser/search_engines/template_url_service_factory.h" |
12 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 12 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 14 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
15 #include "components/user_prefs/pref_registry_syncable.h" | 15 #include "components/pref_registry/pref_registry_syncable.h" |
16 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
17 | 17 |
18 // static | 18 // static |
19 AutomaticProfileResetter* AutomaticProfileResetterFactory::GetForBrowserContext( | 19 AutomaticProfileResetter* AutomaticProfileResetterFactory::GetForBrowserContext( |
20 content::BrowserContext* context) { | 20 content::BrowserContext* context) { |
21 return static_cast<AutomaticProfileResetter*>( | 21 return static_cast<AutomaticProfileResetter*>( |
22 GetInstance()->GetServiceForBrowserContext(context, true)); | 22 GetInstance()->GetServiceForBrowserContext(context, true)); |
23 } | 23 } |
24 | 24 |
25 // static | 25 // static |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 bool AutomaticProfileResetterFactory:: | 64 bool AutomaticProfileResetterFactory:: |
65 ServiceIsCreatedWithBrowserContext() const { | 65 ServiceIsCreatedWithBrowserContext() const { |
66 return true; | 66 return true; |
67 } | 67 } |
68 | 68 |
69 bool AutomaticProfileResetterFactory::ServiceIsNULLWhileTesting() const { | 69 bool AutomaticProfileResetterFactory::ServiceIsNULLWhileTesting() const { |
70 return true; | 70 return true; |
71 } | 71 } |
OLD | NEW |