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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 | 172 |
173 // Returns true if |profile| has exited uncleanly and has not been launched | 173 // Returns true if |profile| has exited uncleanly and has not been launched |
174 // after the unclean exit. | 174 // after the unclean exit. |
175 bool HasPendingUncleanExit(Profile* profile); | 175 bool HasPendingUncleanExit(Profile* profile); |
176 | 176 |
177 // Returns the path that contains the profile that should be loaded on process | 177 // Returns the path that contains the profile that should be loaded on process |
178 // startup. | 178 // startup. |
179 base::FilePath GetStartupProfilePath(const base::FilePath& user_data_dir, | 179 base::FilePath GetStartupProfilePath(const base::FilePath& user_data_dir, |
180 const base::CommandLine& command_line); | 180 const base::CommandLine& command_line); |
181 | 181 |
182 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | |
183 // Returns the profile that should be loaded on process startup. This is either | |
184 // the profile return by GetStartupProfilePath, or the guest profile (user | |
185 // manager) if the above profile is signed out. Returns NULL if this profile | |
Peter Kasting
2016/06/16 06:37:49
Nit: null (2 places)
What does "user manager" mea
WC Leung
2016/06/19 17:56:19
Done.
Peter Kasting
2016/06/20 02:25:50
Sorry, I wasn't sufficiently clear. I know what t
WC Leung
2016/06/20 15:44:24
Acknowledged.
WC Leung
2016/06/24 16:17:50
Done.
| |
186 // cannot be opened. | |
187 Profile* GetStartupProfile(const base::FilePath& user_data_dir, | |
188 const base::CommandLine& command_line); | |
189 | |
190 // Returns the a fallback profile that should be loaded on process startup. | |
191 // Possible to return NULL, which means no profile (including guest profile) can | |
192 // be opened. | |
193 Profile* GetFallbackStartupProfile(); | |
194 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | |
195 | |
182 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ | 196 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
OLD | NEW |