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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 329093003: Remove unloaded profile hash store initialization, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove more code. Created 6 years, 6 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 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // chrome_prefs::Schedule*() methods and ignore presence of a domain when 86 // chrome_prefs::Schedule*() methods and ignore presence of a domain when
87 // determining the active SettingsEnforcement group. For testing only. 87 // determining the active SettingsEnforcement group. For testing only.
88 void DisableDelaysAndDomainCheckForTesting(); 88 void DisableDelaysAndDomainCheckForTesting();
89 89
90 // Schedules an update check for all PrefHashStores, stores whose version 90 // Schedules an update check for all PrefHashStores, stores whose version
91 // doesn't match the latest version will then be updated. Clears all pref hash 91 // doesn't match the latest version will then be updated. Clears all pref hash
92 // state on platforms that don't yet support a pref hash store. 92 // state on platforms that don't yet support a pref hash store.
93 void SchedulePrefHashStoresUpdateCheck( 93 void SchedulePrefHashStoresUpdateCheck(
94 const base::FilePath& initial_profile_path); 94 const base::FilePath& initial_profile_path);
95 95
96 // Resets the contents of the preference hash store for the profile at
97 // |profile_path|.
98 void ResetPrefHashStore(const base::FilePath& profile_path);
99
100 // Initializes the preferences for the profile at |profile_path| with the 96 // Initializes the preferences for the profile at |profile_path| with the
101 // preference values in |master_prefs|. Returns true on success. 97 // preference values in |master_prefs|. Returns true on success.
102 bool InitializePrefsFromMasterPrefs( 98 bool InitializePrefsFromMasterPrefs(
103 const base::FilePath& profile_path, 99 const base::FilePath& profile_path,
104 const base::DictionaryValue& master_prefs); 100 const base::DictionaryValue& master_prefs);
105 101
106 // Retrieves the time of the last preference reset event, if any, for the 102 // Retrieves the time of the last preference reset event, if any, for the
107 // provided profile. If no reset has occurred, returns a null |Time|. 103 // provided profile. If no reset has occurred, returns a null |Time|.
108 base::Time GetResetTime(Profile* profile); 104 base::Time GetResetTime(Profile* profile);
109 105
110 // Clears the time of the last preference reset event, if any, for the provided 106 // Clears the time of the last preference reset event, if any, for the provided
111 // profile. 107 // profile.
112 void ClearResetTime(Profile* profile); 108 void ClearResetTime(Profile* profile);
113 109
114 // Register local state prefs used by chrome preference system. 110 // Register local state prefs used by chrome preference system.
115 void RegisterPrefs(PrefRegistrySimple* registry); 111 void RegisterPrefs(PrefRegistrySimple* registry);
116 112
117 // Register user prefs used by chrome preference system. 113 // Register user prefs used by chrome preference system.
118 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 114 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
119 115
120 } // namespace chrome_prefs 116 } // namespace chrome_prefs
121 117
122 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 118 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698