| OLD | NEW |
| 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 // This file contains functions processing master preference file used by | 5 // This file contains functions processing master preference file used by |
| 6 // setup and first run. | 6 // setup and first run. |
| 7 | 7 |
| 8 #ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
| 9 #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 9 #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
| 10 | 10 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // } | 154 // } |
| 155 // } | 155 // } |
| 156 // } | 156 // } |
| 157 // } | 157 // } |
| 158 // | 158 // |
| 159 bool GetExtensionsBlock(base::DictionaryValue** extensions) const; | 159 bool GetExtensionsBlock(base::DictionaryValue** extensions) const; |
| 160 | 160 |
| 161 // Returns the compressed variations seed entry from the master prefs. | 161 // Returns the compressed variations seed entry from the master prefs. |
| 162 std::string GetCompressedVariationsSeed() const; | 162 std::string GetCompressedVariationsSeed() const; |
| 163 | 163 |
| 164 // Returns the variations seed entry from the master prefs. | |
| 165 std::string GetVariationsSeed() const; | |
| 166 | |
| 167 // Returns the variations seed signature entry from the master prefs. | 164 // Returns the variations seed signature entry from the master prefs. |
| 168 std::string GetVariationsSeedSignature() const; | 165 std::string GetVariationsSeedSignature() const; |
| 169 | 166 |
| 170 // Returns true iff the master preferences were successfully read from a file. | 167 // Returns true iff the master preferences were successfully read from a file. |
| 171 bool read_from_file() const { | 168 bool read_from_file() const { |
| 172 return preferences_read_from_file_; | 169 return preferences_read_from_file_; |
| 173 } | 170 } |
| 174 | 171 |
| 175 // Returns a reference to this MasterPreferences' root dictionary of values. | 172 // Returns a reference to this MasterPreferences' root dictionary of values. |
| 176 const base::DictionaryValue& master_dictionary() const { | 173 const base::DictionaryValue& master_dictionary() const { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 204 base::DictionaryValue* distribution_ = nullptr; | 201 base::DictionaryValue* distribution_ = nullptr; |
| 205 bool preferences_read_from_file_ = false; | 202 bool preferences_read_from_file_ = false; |
| 206 | 203 |
| 207 private: | 204 private: |
| 208 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); | 205 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); |
| 209 }; | 206 }; |
| 210 | 207 |
| 211 } // namespace installer | 208 } // namespace installer |
| 212 | 209 |
| 213 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 210 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
| OLD | NEW |