| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // }, | 151 // }, |
| 152 // "path": "ppflmjolhbonpkbkooiamcnenbmbjcbb\\0.0", | 152 // "path": "ppflmjolhbonpkbkooiamcnenbmbjcbb\\0.0", |
| 153 // "state": 1 | 153 // "state": 1 |
| 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 variations seed entry from the master prefs. |
| 162 std::string GetVariationsSeed() const; |
| 163 |
| 161 // Returns true iff the master preferences were successfully read from a file. | 164 // Returns true iff the master preferences were successfully read from a file. |
| 162 bool read_from_file() const { | 165 bool read_from_file() const { |
| 163 return preferences_read_from_file_; | 166 return preferences_read_from_file_; |
| 164 } | 167 } |
| 165 | 168 |
| 166 bool install_chrome() const { | 169 bool install_chrome() const { |
| 167 return chrome_; | 170 return chrome_; |
| 168 } | 171 } |
| 169 | 172 |
| 170 bool install_chrome_app_host() const { | 173 bool install_chrome_app_host() const { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 bool chrome_frame_; | 215 bool chrome_frame_; |
| 213 bool multi_install_; | 216 bool multi_install_; |
| 214 | 217 |
| 215 private: | 218 private: |
| 216 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); | 219 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); |
| 217 }; | 220 }; |
| 218 | 221 |
| 219 } // namespace installer | 222 } // namespace installer |
| 220 | 223 |
| 221 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 224 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
| OLD | NEW |