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

Side by Side 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: Addressed comments Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/session/user_session_manager.h" 5 #include "chrome/browser/chromeos/login/session/user_session_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 const user_manager::User* user = 1149 const user_manager::User* user =
1150 ProfileHelper::Get()->GetUserByProfile(profile); 1150 ProfileHelper::Get()->GetUserByProfile(profile);
1151 if (user_manager->GetPrimaryUser() == user) { 1151 if (user_manager->GetPrimaryUser() == user) {
1152 InitRlz(profile); 1152 InitRlz(profile);
1153 InitializeCerts(profile); 1153 InitializeCerts(profile);
1154 InitializeCRLSetFetcher(user); 1154 InitializeCRLSetFetcher(user);
1155 InitializeCertificateTransparencyComponents(user); 1155 InitializeCertificateTransparencyComponents(user);
1156 1156
1157 if (arc::ArcBridgeService::GetEnabled( 1157 if (arc::ArcBridgeService::GetEnabled(
1158 base::CommandLine::ForCurrentProcess())) { 1158 base::CommandLine::ForCurrentProcess())) {
1159 const AccountId& account_id =
1160 multi_user_util::GetAccountIdFromProfile(profile);
1161 std::unique_ptr<BooleanPrefMember> arc_enabled_pref =
1162 base::MakeUnique<BooleanPrefMember>();
1163 arc_enabled_pref->Init(prefs::kArcEnabled, profile->GetPrefs());
1159 DCHECK(arc::ArcServiceManager::Get()); 1164 DCHECK(arc::ArcServiceManager::Get());
1160 arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared( 1165 arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared(
1161 multi_user_util::GetAccountIdFromProfile(profile)); 1166 account_id, std::move(arc_enabled_pref));
1162 arc::ArcAuthService* arc_auth_service = arc::ArcAuthService::Get(); 1167 arc::ArcAuthService* arc_auth_service = arc::ArcAuthService::Get();
1163 DCHECK(arc_auth_service); 1168 DCHECK(arc_auth_service);
1164 arc_auth_service->OnPrimaryUserProfilePrepared(profile); 1169 arc_auth_service->OnPrimaryUserProfilePrepared(profile);
1165 } 1170 }
1166 } 1171 }
1167 1172
1168 UpdateEasyUnlockKeys(user_context_); 1173 UpdateEasyUnlockKeys(user_context_);
1169 user_context_.ClearSecrets(); 1174 user_context_.ClearSecrets();
1170 if (TokenHandlesEnabled()) { 1175 if (TokenHandlesEnabled()) {
1171 CreateTokenUtilIfMissing(); 1176 CreateTokenUtilIfMissing();
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 token_handle_util_.reset(); 1836 token_handle_util_.reset();
1832 first_run::GoodiesDisplayer::Delete(); 1837 first_run::GoodiesDisplayer::Delete();
1833 } 1838 }
1834 1839
1835 void UserSessionManager::CreateTokenUtilIfMissing() { 1840 void UserSessionManager::CreateTokenUtilIfMissing() {
1836 if (!token_handle_util_.get()) 1841 if (!token_handle_util_.get())
1837 token_handle_util_.reset(new TokenHandleUtil()); 1842 token_handle_util_.reset(new TokenHandleUtil());
1838 } 1843 }
1839 1844
1840 } // namespace chromeos 1845 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/session_manager_client.h » ('j') | components/arc/arc_service_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698