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

Unified Diff: chrome/browser/chromeos/arc/arc_session_manager.cc

Issue 2704113003: Save Play user id when ARC user gets a Managed Google Play account (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_session_manager.cc
diff --git a/chrome/browser/chromeos/arc/arc_session_manager.cc b/chrome/browser/chromeos/arc/arc_session_manager.cc
index 8023b27d5bd373f80a783893a8262265d1e6fefd..a5863c56215a62f389574e292f12193282346b1f 100644
--- a/chrome/browser/chromeos/arc/arc_session_manager.cc
+++ b/chrome/browser/chromeos/arc/arc_session_manager.cc
@@ -108,6 +108,10 @@ void ArcSessionManager::RegisterProfilePrefs(
// from a previous managed state to the unmanaged.
registry->RegisterBooleanPref(prefs::kArcBackupRestoreEnabled, false);
registry->RegisterBooleanPref(prefs::kArcLocationServiceEnabled, false);
+ // This is used to delete the Play user ID if ARC is disabled for an
+ // AD-managed device.
+ registry->RegisterStringPref(prefs::kArcActiveDirectoryPlayUserId,
+ std::string());
}
// static
@@ -181,6 +185,11 @@ void ArcSessionManager::RemoveArcData() {
}
VLOG(1) << "Starting ARC data removal";
+
+ // Remove Play user ID for Active Directory managed devices.
+ profile_->GetPrefs()->SetString(prefs::kArcActiveDirectoryPlayUserId,
+ std::string());
+
SetState(State::REMOVING_DATA_DIR);
chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->RemoveArcData(
cryptohome::Identification(
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698