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 #ifndef CHROME_BROWSER_UI_BROWSER_INIT_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_INIT_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 void AddStartupURLs(std::vector<GURL>* startup_urls) const; | 231 void AddStartupURLs(std::vector<GURL>* startup_urls) const; |
232 | 232 |
233 // Checks whether Chrome is still the default browser (unless the user | 233 // Checks whether Chrome is still the default browser (unless the user |
234 // previously instructed not to do so) and warns the user if it is not. | 234 // previously instructed not to do so) and warns the user if it is not. |
235 void CheckDefaultBrowser(Profile* profile); | 235 void CheckDefaultBrowser(Profile* profile); |
236 | 236 |
237 // Checks whether Chrome should show the 'Chrome was auto-started' infobar. | 237 // Checks whether Chrome should show the 'Chrome was auto-started' infobar. |
238 // Returns true if so. | 238 // Returns true if so. |
239 bool CheckIfAutoLaunched(Profile* profile); | 239 bool CheckIfAutoLaunched(Profile* profile); |
240 | 240 |
| 241 // Checks whether the Preferences backup is invalid and notifies user in |
| 242 // that case. |
| 243 void CheckPreferencesBackup(Profile* profile); |
| 244 |
241 const FilePath cur_dir_; | 245 const FilePath cur_dir_; |
242 const CommandLine& command_line_; | 246 const CommandLine& command_line_; |
243 Profile* profile_; | 247 Profile* profile_; |
244 BrowserInit* browser_init_; | 248 BrowserInit* browser_init_; |
245 bool is_first_run_; | 249 bool is_first_run_; |
246 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile); | 250 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile); |
247 }; | 251 }; |
248 | 252 |
249 private: | 253 private: |
250 friend class CloudPrintProxyPolicyTest; | 254 friend class CloudPrintProxyPolicyTest; |
(...skipping 30 matching lines...) Expand all Loading... |
281 | 285 |
282 // True if we have already read and reset the preference kWasRestarted. (A | 286 // True if we have already read and reset the preference kWasRestarted. (A |
283 // member variable instead of a static variable inside WasRestarted because | 287 // member variable instead of a static variable inside WasRestarted because |
284 // of testing.) | 288 // of testing.) |
285 static bool was_restarted_read_; | 289 static bool was_restarted_read_; |
286 | 290 |
287 DISALLOW_COPY_AND_ASSIGN(BrowserInit); | 291 DISALLOW_COPY_AND_ASSIGN(BrowserInit); |
288 }; | 292 }; |
289 | 293 |
290 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_ | 294 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_ |
OLD | NEW |