Chromium Code Reviews| Index: chrome/browser/profiles/profile_window.cc |
| diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc |
| index f9b2b362c7b0b84513a621516727f19eb7e64275..a4cae55dedaaea671d5a01597dca5d4027b39e06 100644 |
| --- a/chrome/browser/profiles/profile_window.cc |
| +++ b/chrome/browser/profiles/profile_window.cc |
| @@ -34,9 +34,11 @@ |
| #include "chrome/browser/ui/browser.h" |
| #include "chrome/browser/ui/browser_dialogs.h" |
| #include "chrome/browser/ui/profile_chooser_constants.h" |
| +#include "chrome/browser/ui/profile_error_dialog.h" |
| #include "chrome/browser/ui/user_manager.h" |
| #include "chrome/common/pref_names.h" |
| #include "chrome/common/url_constants.h" |
| +#include "chrome/grit/generated_resources.h" |
| #include "components/browser_sync/browser/profile_sync_service.h" |
| #include "components/flags_ui/pref_service_flags_storage.h" |
| #include "components/prefs/pref_service.h" |
| @@ -230,6 +232,12 @@ void OpenBrowserWindowForProfile( |
| Profile::CreateStatus status) { |
| DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| + if (status == Profile::CREATE_STATUS_LOCAL_FAIL) { |
| + ShowProfileErrorDialog(PROFILE_ERROR_SWITCH_TO_FAILURE, |
| + IDS_COULDNT_OPEN_PROFILE_ERROR); |
| + return; |
|
Peter Kasting
2016/07/11 02:35:54
Nit: Not necessary, subsequent condition handles t
WC Leung
2016/07/18 09:41:35
Done.
|
| + } |
| + |
| if (status != Profile::CREATE_STATUS_INITIALIZED) |
| return; |