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

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

Issue 2204943002: Integrate registry_hash_store_contents with the rest of tracked prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Experiment with giving two transactions to EnforceAndReport Created 4 years, 4 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); 92 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner);
93 93
94 private: 94 private:
95 // Returns a PrefHashStore for the managed profile. Should only be called 95 // Returns a PrefHashStore for the managed profile. Should only be called
96 // if |kPlatformSupportsPreferenceTracking|. |use_super_mac| determines 96 // if |kPlatformSupportsPreferenceTracking|. |use_super_mac| determines
97 // whether the returned object will calculate, store, and validate super MACs 97 // whether the returned object will calculate, store, and validate super MACs
98 // (and, by extension, accept non-null newly protected preferences as 98 // (and, by extension, accept non-null newly protected preferences as
99 // TrustedInitialized). 99 // TrustedInitialized).
100 std::unique_ptr<PrefHashStore> GetPrefHashStore(bool use_super_mac); 100 std::unique_ptr<PrefHashStore> GetPrefHashStore(bool use_super_mac);
101 101
102 // On Windows, returns a PrefHashStore for the managed profile for use with
103 // |RegistryHashStoreContentsWin|. Returns nullptr otherwise.
104 std::unique_ptr<PrefHashStore> MaybeGetRegistryPrefHashStore();
gab 2016/08/03 18:19:34 // Returns a PrefHashStore that can be used for ex
proberge 2016/08/04 00:13:45 Done.
105
102 const base::FilePath profile_path_; 106 const base::FilePath profile_path_;
103 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> 107 const std::vector<PrefHashFilter::TrackedPreferenceMetadata>
104 tracking_configuration_; 108 tracking_configuration_;
105 const size_t reporting_ids_count_; 109 const size_t reporting_ids_count_;
106 const std::string seed_; 110 const std::string seed_;
107 const std::string device_id_; 111 const std::string device_id_;
108 PrefService* local_state_; 112 PrefService* local_state_;
109 113
110 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager); 114 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager);
111 }; 115 };
112 116
113 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ 117 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698