Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: chrome/browser/ui/startup/startup_browser_creator.h

Issue 2047483003: Add fallback behavior if the last used profile cannot initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug-614753-fix
Patch Set: Fix a mistake in a comment. (Didn't check Atom reflow output, sorry :-( ) Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 returned by GetStartupProfilePath, or the guest profile if the
185 // above profile is locked. The guest profile denotes that we should open the
186 // user manager. Returns null if the above profile cannot be opened. In case of
187 // opening the user manager, returns null if either the guest profile or the
188 // system profile cannot be opened.
189 Profile* GetStartupProfile(const base::FilePath& user_data_dir,
190 const base::CommandLine& command_line);
191
192 // Returns the profile that should be loaded on process startup when
193 // GetStartupProfile() returns null. As with GetStartupProfile(), returning the
194 // guest profile means the caller should open the user manager. This may return
195 // null if neither any profile nor the user manager can be opened.
196 Profile* GetFallbackStartupProfile();
197 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
198
182 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ 199 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/profile_error_dialog.h ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698