| OLD | NEW | 
|---|
| 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 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h" | 5 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h" | 
| 6 | 6 | 
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" | 
|  | 8 #include "build/build_config.h" | 
| 8 #include "chrome/browser/profile_resetter/triggered_profile_resetter.h" | 9 #include "chrome/browser/profile_resetter/triggered_profile_resetter.h" | 
| 9 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" | 
| 10 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" | 
| 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 12 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 
| 12 #include "components/pref_registry/pref_registry_syncable.h" | 13 #include "components/pref_registry/pref_registry_syncable.h" | 
| 13 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" | 
| 14 | 15 | 
| 15 // static | 16 // static | 
| 16 TriggeredProfileResetter* TriggeredProfileResetterFactory::GetForBrowserContext( | 17 TriggeredProfileResetter* TriggeredProfileResetterFactory::GetForBrowserContext( | 
| 17     content::BrowserContext* context) { | 18     content::BrowserContext* context) { | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 45     user_prefs::PrefRegistrySyncable* registry) { | 46     user_prefs::PrefRegistrySyncable* registry) { | 
| 46 #if defined(OS_WIN) | 47 #if defined(OS_WIN) | 
| 47   registry->RegisterInt64Pref(prefs::kLastProfileResetTimestamp, 0L); | 48   registry->RegisterInt64Pref(prefs::kLastProfileResetTimestamp, 0L); | 
| 48 #endif | 49 #endif | 
| 49 } | 50 } | 
| 50 | 51 | 
| 51 bool TriggeredProfileResetterFactory::ServiceIsCreatedWithBrowserContext() | 52 bool TriggeredProfileResetterFactory::ServiceIsCreatedWithBrowserContext() | 
| 52     const { | 53     const { | 
| 53   return true; | 54   return true; | 
| 54 } | 55 } | 
| OLD | NEW | 
|---|