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

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 1966133002: Run RemoveArcData after a user has opted out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adressed comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698