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

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

Issue 324493002: Move preference MACs to the protected preference stores. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New approach. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PROFILE_PREF_STORE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_
6 #define CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ 6 #define CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 PersistentPrefStore* CreateProfilePrefStore( 84 PersistentPrefStore* CreateProfilePrefStore(
85 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, 85 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
86 TrackedPreferenceValidationDelegate* validation_delegate); 86 TrackedPreferenceValidationDelegate* validation_delegate);
87 87
88 // Initializes the preferences for the managed profile with the preference 88 // Initializes the preferences for the managed profile with the preference
89 // values in |master_prefs|. Acts synchronously, including blocking IO. 89 // values in |master_prefs|. Acts synchronously, including blocking IO.
90 // Returns true on success. 90 // Returns true on success.
91 bool InitializePrefsFromMasterPrefs( 91 bool InitializePrefsFromMasterPrefs(
92 const base::DictionaryValue& master_prefs); 92 const base::DictionaryValue& master_prefs);
93 93
94 // Creates a single-file PrefStore as was used in M34 and earlier. Used only
95 // for testing migration.
96 PersistentPrefStore* CreateDeprecatedCombinedProfilePrefStore(
97 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner);
98
99 private: 94 private:
100 // Returns a PrefHashStoreImpl for the managed profile. Should only be called 95 // Returns a PrefHashStoreImpl for the managed profile. Should only be called
101 // if |kPlatformSupportsPreferenceTracking|. 96 // if |kPlatformSupportsPreferenceTracking|.
102 scoped_ptr<PrefHashStoreImpl> GetPrefHashStoreImpl(); 97 scoped_ptr<PrefHashStoreImpl> GetPrefHashStoreImpl(bool use_super_mac);
103 98
104 const base::FilePath profile_path_; 99 const base::FilePath profile_path_;
105 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> 100 const std::vector<PrefHashFilter::TrackedPreferenceMetadata>
106 tracking_configuration_; 101 tracking_configuration_;
107 const size_t reporting_ids_count_; 102 const size_t reporting_ids_count_;
108 const std::string seed_; 103 const std::string seed_;
109 const std::string device_id_; 104 const std::string device_id_;
110 PrefService* local_state_; 105 PrefService* local_state_;
111 106
112 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager); 107 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager);
113 }; 108 };
114 109
115 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ 110 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698