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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 165 } |
166 | 166 |
167 bool install_chrome() const { | 167 bool install_chrome() const { |
168 return chrome_; | 168 return chrome_; |
169 } | 169 } |
170 | 170 |
171 bool install_chrome_app_launcher() const { | 171 bool install_chrome_app_launcher() const { |
172 return chrome_app_launcher_; | 172 return chrome_app_launcher_; |
173 } | 173 } |
174 | 174 |
175 bool install_chrome_frame() const { | |
176 return chrome_frame_; | |
177 } | |
178 | |
179 bool is_multi_install() const { | 175 bool is_multi_install() const { |
180 return multi_install_; | 176 return multi_install_; |
181 } | 177 } |
182 | 178 |
183 // Returns a reference to this MasterPreferences' root dictionary of values. | 179 // Returns a reference to this MasterPreferences' root dictionary of values. |
184 const base::DictionaryValue& master_dictionary() const { | 180 const base::DictionaryValue& master_dictionary() const { |
185 return *master_dictionary_.get(); | 181 return *master_dictionary_.get(); |
186 } | 182 } |
187 | 183 |
188 // Returns a static preference object that has been initialized with the | 184 // Returns a static preference object that has been initialized with the |
(...skipping 14 matching lines...) Expand all Loading... |
203 // Enforces legacy preferences that should no longer be used, but could be | 199 // Enforces legacy preferences that should no longer be used, but could be |
204 // found in older master_preferences files. | 200 // found in older master_preferences files. |
205 void EnforceLegacyPreferences(); | 201 void EnforceLegacyPreferences(); |
206 | 202 |
207 protected: | 203 protected: |
208 scoped_ptr<base::DictionaryValue> master_dictionary_; | 204 scoped_ptr<base::DictionaryValue> master_dictionary_; |
209 base::DictionaryValue* distribution_; | 205 base::DictionaryValue* distribution_; |
210 bool preferences_read_from_file_; | 206 bool preferences_read_from_file_; |
211 bool chrome_; | 207 bool chrome_; |
212 bool chrome_app_launcher_; | 208 bool chrome_app_launcher_; |
213 bool chrome_frame_; | |
214 bool multi_install_; | 209 bool multi_install_; |
215 | 210 |
216 private: | 211 private: |
217 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); | 212 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); |
218 }; | 213 }; |
219 | 214 |
220 } // namespace installer | 215 } // namespace installer |
221 | 216 |
222 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 217 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
OLD | NEW |