| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/profiles/gaia_info_update_service_factory.h" | 5 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/gaia_info_update_service.h" | 7 #include "chrome/browser/profiles/gaia_info_update_service.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/signin/signin_manager_factory.h" | 9 #include "chrome/browser/signin/signin_manager_factory.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 12 #include "components/user_prefs/pref_registry_syncable.h" | 12 #include "components/pref_registry/pref_registry_syncable.h" |
| 13 | 13 |
| 14 GAIAInfoUpdateServiceFactory::GAIAInfoUpdateServiceFactory() | 14 GAIAInfoUpdateServiceFactory::GAIAInfoUpdateServiceFactory() |
| 15 : BrowserContextKeyedServiceFactory( | 15 : BrowserContextKeyedServiceFactory( |
| 16 "GAIAInfoUpdateService", | 16 "GAIAInfoUpdateService", |
| 17 BrowserContextDependencyManager::GetInstance()) { | 17 BrowserContextDependencyManager::GetInstance()) { |
| 18 DependsOn(SigninManagerFactory::GetInstance()); | 18 DependsOn(SigninManagerFactory::GetInstance()); |
| 19 } | 19 } |
| 20 | 20 |
| 21 GAIAInfoUpdateServiceFactory::~GAIAInfoUpdateServiceFactory() {} | 21 GAIAInfoUpdateServiceFactory::~GAIAInfoUpdateServiceFactory() {} |
| 22 | 22 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 0, | 46 0, |
| 47 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 47 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 48 prefs->RegisterStringPref(prefs::kProfileGAIAInfoPictureURL, | 48 prefs->RegisterStringPref(prefs::kProfileGAIAInfoPictureURL, |
| 49 std::string(), | 49 std::string(), |
| 50 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 50 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool GAIAInfoUpdateServiceFactory::ServiceIsNULLWhileTesting() const { | 53 bool GAIAInfoUpdateServiceFactory::ServiceIsNULLWhileTesting() const { |
| 54 return true; | 54 return true; |
| 55 } | 55 } |
| OLD | NEW |