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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 161 } |
162 | 162 |
163 bool install_chrome() const { | 163 bool install_chrome() const { |
164 return chrome_; | 164 return chrome_; |
165 } | 165 } |
166 | 166 |
167 bool install_chrome_app_host() const { | 167 bool install_chrome_app_host() const { |
168 return chrome_app_host_; | 168 return chrome_app_host_; |
169 } | 169 } |
170 | 170 |
| 171 bool install_chrome_app_launcher() const { |
| 172 return chrome_app_launcher_; |
| 173 } |
| 174 |
171 bool install_chrome_frame() const { | 175 bool install_chrome_frame() const { |
172 return chrome_frame_; | 176 return chrome_frame_; |
173 } | 177 } |
174 | 178 |
175 bool is_multi_install() const { | 179 bool is_multi_install() const { |
176 return multi_install_; | 180 return multi_install_; |
177 } | 181 } |
178 | 182 |
179 // Returns a static preference object that has been initialized with the | 183 // Returns a static preference object that has been initialized with the |
180 // CommandLine object for the current process. | 184 // CommandLine object for the current process. |
181 // NOTE: Must not be called before CommandLine::Init() is called! | 185 // NOTE: Must not be called before CommandLine::Init() is called! |
182 // OTHER NOTE: Not thread safe. | 186 // OTHER NOTE: Not thread safe. |
183 static const MasterPreferences& ForCurrentProcess(); | 187 static const MasterPreferences& ForCurrentProcess(); |
184 | 188 |
185 protected: | 189 protected: |
186 void InitializeProductFlags(); | 190 void InitializeProductFlags(); |
187 | 191 |
188 void InitializeFromCommandLine(const CommandLine& cmd_line); | 192 void InitializeFromCommandLine(const CommandLine& cmd_line); |
189 | 193 |
190 protected: | 194 protected: |
191 scoped_ptr<base::DictionaryValue> master_dictionary_; | 195 scoped_ptr<base::DictionaryValue> master_dictionary_; |
192 base::DictionaryValue* distribution_; | 196 base::DictionaryValue* distribution_; |
193 bool preferences_read_from_file_; | 197 bool preferences_read_from_file_; |
194 bool chrome_; | 198 bool chrome_; |
195 bool chrome_app_host_; | 199 bool chrome_app_host_; |
| 200 bool chrome_app_launcher_; |
196 bool chrome_frame_; | 201 bool chrome_frame_; |
197 bool multi_install_; | 202 bool multi_install_; |
198 | 203 |
199 private: | 204 private: |
200 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); | 205 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); |
201 }; | 206 }; |
202 | 207 |
203 } // namespace installer | 208 } // namespace installer |
204 | 209 |
205 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 210 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
OLD | NEW |