Add fallback behavior if the last used profile cannot initialize
Before this CL, if the last used profile cannot be initialized, it will
be a silent exit in Windows and a CHECK failure in other platforms.
In this CL a list of possible fall-back behavior are used (from the top
to the bottom):
(1) open other last opened profiles which was not signed out.
(2) open the user manager (guest profile & system profile)
(3) open other profiles which was not signed out.
(4) at last, show a message box and do not start chromium.
BUG=614753
Review-Url: https://codereview.chromium.org/2047483003
Cr-Commit-Position: refs/heads/master@{#409023}
diff --git a/chrome/browser/ui/profile_error_dialog.h b/chrome/browser/ui/profile_error_dialog.h
index eec7ba9..e9d1d529 100644
--- a/chrome/browser/ui/profile_error_dialog.h
+++ b/chrome/browser/ui/profile_error_dialog.h
@@ -18,6 +18,8 @@
PROFILE_ERROR_DB_TOKEN_WEB_DATA,
PROFILE_ERROR_DB_WEB_DATA,
PROFILE_ERROR_DB_KEYWORD_WEB_DATA,
+ PROFILE_ERROR_CREATE_FAILURE_SPECIFIED,
+ PROFILE_ERROR_CREATE_FAILURE_ALL,
PROFILE_ERROR_END
};