| 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_FIRST_RUN_FIRST_RUN_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // See ProcessMasterPreferences for more info about this structure. | 41 // See ProcessMasterPreferences for more info about this structure. |
| 42 struct MasterPrefs { | 42 struct MasterPrefs { |
| 43 MasterPrefs(); | 43 MasterPrefs(); |
| 44 ~MasterPrefs(); | 44 ~MasterPrefs(); |
| 45 | 45 |
| 46 int ping_delay; | 46 int ping_delay; |
| 47 bool homepage_defined; | 47 bool homepage_defined; |
| 48 int do_import_items; | 48 int do_import_items; |
| 49 int dont_import_items; | 49 int dont_import_items; |
| 50 bool make_chrome_default; | 50 bool make_chrome_default; |
| 51 bool suppress_first_run_default_browser_prompt; |
| 51 std::vector<GURL> new_tabs; | 52 std::vector<GURL> new_tabs; |
| 52 std::vector<GURL> bookmarks; | 53 std::vector<GURL> bookmarks; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 // Returns true if this is the first time chrome is run for this user. | 56 // Returns true if this is the first time chrome is run for this user. |
| 56 bool IsChromeFirstRun(); | 57 bool IsChromeFirstRun(); |
| 57 | 58 |
| 58 // Creates the sentinel file that signals that chrome has been configured. | 59 // Creates the sentinel file that signals that chrome has been configured. |
| 59 bool CreateSentinel(); | 60 bool CreateSentinel(); |
| 60 | 61 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 const content::NotificationDetails& details) OVERRIDE; | 137 const content::NotificationDetails& details) OVERRIDE; |
| 137 | 138 |
| 138 content::NotificationRegistrar registrar_; | 139 content::NotificationRegistrar registrar_; |
| 139 | 140 |
| 140 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); | 141 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 } // namespace first_run | 144 } // namespace first_run |
| 144 | 145 |
| 145 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 146 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| OLD | NEW |