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_STARTUP_STARTUP_BROWSER_CREATOR_H_ | 5 #ifndef CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ | 6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 Profile* profile, | 140 Profile* profile, |
141 Profile::CreateStatus status); | 141 Profile::CreateStatus status); |
142 | 142 |
143 // Returns true once a profile was activated. Used by the | 143 // Returns true once a profile was activated. Used by the |
144 // StartupBrowserCreatorTest.LastUsedProfileActivated test. | 144 // StartupBrowserCreatorTest.LastUsedProfileActivated test. |
145 static bool ActivatedProfile(); | 145 static bool ActivatedProfile(); |
146 | 146 |
147 // Additional tabs to open during first run. | 147 // Additional tabs to open during first run. |
148 std::vector<GURL> first_run_tabs_; | 148 std::vector<GURL> first_run_tabs_; |
149 | 149 |
150 // True if the set-as-default dialog has been explicitly supressed. | 150 // True if the set-as-default dialog has been explicitly suppressed. |
151 // This information is used to allow the default browser prompt to show on | 151 // This information is used to allow the default browser prompt to show on |
152 // first-run when the dialog has been suppressed. | 152 // first-run when the dialog has been suppressed. |
153 bool is_default_browser_dialog_suppressed_; | 153 bool is_default_browser_dialog_suppressed_; |
154 | 154 |
155 // Whether the browser window should be shown immediately after it has been | 155 // Whether the browser window should be shown immediately after it has been |
156 // created. Default is true. | 156 // created. Default is true. |
157 bool show_main_browser_window_; | 157 bool show_main_browser_window_; |
158 | 158 |
159 // True if we have already read and reset the preference kWasRestarted. (A | 159 // True if we have already read and reset the preference kWasRestarted. (A |
160 // member variable instead of a static variable inside WasRestarted because | 160 // member variable instead of a static variable inside WasRestarted because |
161 // of testing.) | 161 // of testing.) |
162 static bool was_restarted_read_; | 162 static bool was_restarted_read_; |
163 | 163 |
164 static bool in_synchronous_profile_launch_; | 164 static bool in_synchronous_profile_launch_; |
165 | 165 |
166 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator); | 166 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator); |
167 }; | 167 }; |
168 | 168 |
169 // Returns true if |profile| has exited uncleanly and has not been launched | 169 // Returns true if |profile| has exited uncleanly and has not been launched |
170 // after the unclean exit. | 170 // after the unclean exit. |
171 bool HasPendingUncleanExit(Profile* profile); | 171 bool HasPendingUncleanExit(Profile* profile); |
172 | 172 |
173 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ | 173 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
OLD | NEW |