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

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

Issue 145053004: Let chrome_prefs handle Preferences initialization from master_preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang compile 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/first_run/first_run_internal.h ('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 371e60cadec806f50deb5fa457bcf8b3b919e247..73f6ad408bbc90842b4be84a1ecc9913d79f09df 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.h
+++ b/chrome/browser/prefs/chrome_pref_service_factory.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
namespace base {
+class DictionaryValue;
class FilePath;
class SequencedTaskRunner;
}
@@ -74,6 +75,12 @@ void InitializePrefHashStoreIfRequired(
// |profile_path|.
void ResetPrefHashStore(const base::FilePath& profile_path);
+// Initializes the preferences for the profile at |profile_path| with the
+// preference values in |master_prefs|. Returns true on success.
+bool InitializePrefsFromMasterPrefs(
+ const base::FilePath& profile_path,
+ const base::DictionaryValue& master_prefs);
+
} // namespace chrome_prefs
#endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
« no previous file with comments | « chrome/browser/first_run/first_run_internal.h ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698