Index: chrome/browser/chromeos/login/session/user_session_manager.cc |
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc |
index 7bf700105febbfe3e4650923b0d9f263ec141ba2..f75a9792eb1ea02623ab6ce3c18fbb5f5edadfcd 100644 |
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc |
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc |
@@ -1157,9 +1157,14 @@ void UserSessionManager::FinalizePrepareProfile(Profile* profile) { |
if (arc::ArcBridgeService::GetEnabled( |
base::CommandLine::ForCurrentProcess())) { |
+ const AccountId& account_id = |
+ multi_user_util::GetAccountIdFromProfile(profile); |
+ std::unique_ptr<BooleanPrefMember> arc_enabled_pref = |
+ base::MakeUnique<BooleanPrefMember>(); |
+ arc_enabled_pref->Init(prefs::kArcEnabled, profile->GetPrefs()); |
DCHECK(arc::ArcServiceManager::Get()); |
arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared( |
- multi_user_util::GetAccountIdFromProfile(profile)); |
+ account_id, std::move(arc_enabled_pref)); |
arc::ArcAuthService* arc_auth_service = arc::ArcAuthService::Get(); |
DCHECK(arc_auth_service); |
arc_auth_service->OnPrimaryUserProfilePrepared(profile); |