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

Side by Side Diff: chrome/browser/profiles/gaia_info_update_service_factory.cc

Issue 196243009: Just some cleanup before I start on the profile name fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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
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/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
10 #include "components/keyed_service/content/browser_context_dependency_manager.h" 11 #include "components/keyed_service/content/browser_context_dependency_manager.h"
11 #include "components/user_prefs/pref_registry_syncable.h" 12 #include "components/user_prefs/pref_registry_syncable.h"
12 13
13 GAIAInfoUpdateServiceFactory::GAIAInfoUpdateServiceFactory() 14 GAIAInfoUpdateServiceFactory::GAIAInfoUpdateServiceFactory()
14 : BrowserContextKeyedServiceFactory( 15 : BrowserContextKeyedServiceFactory(
15 "GAIAInfoUpdateService", 16 "GAIAInfoUpdateService",
16 BrowserContextDependencyManager::GetInstance()) { 17 BrowserContextDependencyManager::GetInstance()) {
18 DependsOn(SigninManagerFactory::GetInstance());
17 } 19 }
18 20
19 GAIAInfoUpdateServiceFactory::~GAIAInfoUpdateServiceFactory() {} 21 GAIAInfoUpdateServiceFactory::~GAIAInfoUpdateServiceFactory() {}
20 22
21 // static 23 // static
22 GAIAInfoUpdateService* GAIAInfoUpdateServiceFactory::GetForProfile( 24 GAIAInfoUpdateService* GAIAInfoUpdateServiceFactory::GetForProfile(
23 Profile* profile) { 25 Profile* profile) {
24 return static_cast<GAIAInfoUpdateService*>( 26 return static_cast<GAIAInfoUpdateService*>(
25 GetInstance()->GetServiceForBrowserContext(profile, true)); 27 GetInstance()->GetServiceForBrowserContext(profile, true));
26 } 28 }
(...skipping 17 matching lines...) Expand all
44 0, 46 0,
45 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 47 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
46 prefs->RegisterStringPref(prefs::kProfileGAIAInfoPictureURL, 48 prefs->RegisterStringPref(prefs::kProfileGAIAInfoPictureURL,
47 std::string(), 49 std::string(),
48 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 50 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
49 } 51 }
50 52
51 bool GAIAInfoUpdateServiceFactory::ServiceIsNULLWhileTesting() const { 53 bool GAIAInfoUpdateServiceFactory::ServiceIsNULLWhileTesting() const {
52 return true; 54 return true;
53 } 55 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/gaia_info_update_service.cc ('k') | chrome/browser/profiles/gaia_info_update_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698