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

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

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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/profiles/profile_dependency_manager.h" 9 #include "chrome/browser/profiles/profile_dependency_manager.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 20 matching lines...) Expand all
31 31
32 ProfileKeyedService* GAIAInfoUpdateServiceFactory::BuildServiceInstanceFor( 32 ProfileKeyedService* GAIAInfoUpdateServiceFactory::BuildServiceInstanceFor(
33 content::BrowserContext* context) const { 33 content::BrowserContext* context) const {
34 Profile* profile = static_cast<Profile*>(context); 34 Profile* profile = static_cast<Profile*>(context);
35 if (!GAIAInfoUpdateService::ShouldUseGAIAProfileInfo(profile)) 35 if (!GAIAInfoUpdateService::ShouldUseGAIAProfileInfo(profile))
36 return NULL; 36 return NULL;
37 return new GAIAInfoUpdateService(profile); 37 return new GAIAInfoUpdateService(profile);
38 } 38 }
39 39
40 void GAIAInfoUpdateServiceFactory::RegisterUserPrefs( 40 void GAIAInfoUpdateServiceFactory::RegisterUserPrefs(
41 PrefRegistrySyncable* prefs) { 41 user_prefs::PrefRegistrySyncable* prefs) {
42 prefs->RegisterInt64Pref(prefs::kProfileGAIAInfoUpdateTime, 0, 42 prefs->RegisterInt64Pref(prefs::kProfileGAIAInfoUpdateTime,
43 PrefRegistrySyncable::UNSYNCABLE_PREF); 43 0,
44 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
44 prefs->RegisterStringPref(prefs::kProfileGAIAInfoPictureURL, 45 prefs->RegisterStringPref(prefs::kProfileGAIAInfoPictureURL,
45 std::string(), 46 std::string(),
46 PrefRegistrySyncable::UNSYNCABLE_PREF); 47 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
47 } 48 }
48 49
49 bool GAIAInfoUpdateServiceFactory::ServiceIsNULLWhileTesting() const { 50 bool GAIAInfoUpdateServiceFactory::ServiceIsNULLWhileTesting() const {
50 return true; 51 return true;
51 } 52 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/gaia_info_update_service_factory.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698