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

Unified Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 154593002: Refactor pref code out of ProfileImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge up to r249119 Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/chrome_pref_service_factory.h
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.h b/chrome/browser/prefs/chrome_pref_service_factory.h
index c8a119d09a9225429307d10d7421379b38ad362c..371e60cadec806f50deb5fa457bcf8b3b919e247 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.h
+++ b/chrome/browser/prefs/chrome_pref_service_factory.h
@@ -57,17 +57,22 @@ scoped_ptr<PrefServiceSyncable> CreateProfilePrefs(
base::SequencedTaskRunner* pref_io_task_runner,
policy::PolicyService* policy_service,
ManagedUserSettingsService* managed_user_settings,
- scoped_ptr<PrefHashStore> pref_hash_store,
const scoped_refptr<PrefStore>& extension_prefs,
const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
bool async);
-// Initializes a preference hash store for the profile preferences file at
-// |pref_filename| without actually loading the profile.
-void InitializeHashStoreForPrefFile(
- const base::FilePath& pref_filename,
- base::SequencedTaskRunner* pref_io_task_runner,
- scoped_ptr<PrefHashStore> pref_hash_store);
+// Schedules verification of the path resolution of the preferences file under
+// |profile_path|.
+void SchedulePrefsFilePathVerification(const base::FilePath& profile_path);
+
+// Initializes the PrefHashStore for the profile preferences file under
+// |profile_path| without actually loading that profile.
+void InitializePrefHashStoreIfRequired(
+ const base::FilePath& profile_path);
+
+// Resets the contents of the preference hash store for the profile at
+// |profile_path|.
+void ResetPrefHashStore(const base::FilePath& profile_path);
} // namespace chrome_prefs
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698