| Index: chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
|
| diff --git a/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc b/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
|
| index 0ac75fffb66535e265dec8a8288eaf7dd08ed268..a892107990a4aa6708ea849461af8a1e826f6730 100644
|
| --- a/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
|
| +++ b/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
|
| @@ -55,13 +55,18 @@
|
|
|
| SigninCreateProfileHandler::SigninCreateProfileHandler()
|
| : profile_creation_type_(NO_CREATION_IN_PROGRESS),
|
| - weak_ptr_factory_(this) {}
|
| + weak_ptr_factory_(this) {
|
| + g_browser_process->profile_manager()->
|
| + GetProfileAttributesStorage().AddObserver(this);
|
| +}
|
|
|
| SigninCreateProfileHandler::~SigninCreateProfileHandler() {
|
| #if defined(ENABLE_SUPERVISED_USERS)
|
| // Cancellation is only supported for supervised users.
|
| CancelProfileRegistration(false);
|
| #endif
|
| + g_browser_process->profile_manager()->
|
| + GetProfileAttributesStorage().RemoveObserver(this);
|
| }
|
|
|
| void SigninCreateProfileHandler::GetLocalizedValues(
|
| @@ -214,6 +219,11 @@ void SigninCreateProfileHandler::RequestSignedInProfiles(
|
| user_info_list);
|
| }
|
|
|
| +void SigninCreateProfileHandler::OnProfileAuthInfoChanged(
|
| + const base::FilePath& profile_path) {
|
| + RequestSignedInProfiles(nullptr);
|
| +}
|
| +
|
| void SigninCreateProfileHandler::CreateProfile(const base::ListValue* args) {
|
| if (!profiles::IsMultipleProfilesEnabled())
|
| return;
|
|
|