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

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: Fixed DEPS 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/dbus/session_manager_client.h » ('j') | components/arc.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c76775d19845f945ed45c15ead45300df56a6f1a..14f3472915611fc01e94ebaaff0e8962487e640f 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -96,6 +96,7 @@
#include "chromeos/settings/cros_settings_names.h"
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service_manager.h"
+#include "components/arc/userdata/arc_user_data_service.h"
#include "components/component_updater/component_updater_service.h"
#include "components/flags_ui/pref_service_flags_storage.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
@@ -1156,12 +1157,16 @@ void UserSessionManager::FinalizePrepareProfile(Profile* profile) {
if (arc::ArcBridgeService::GetEnabled(
base::CommandLine::ForCurrentProcess())) {
+ const AccountId& account_id =
+ multi_user_util::GetAccountIdFromProfile(profile);
DCHECK(arc::ArcServiceManager::Get());
- arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared(
- multi_user_util::GetAccountIdFromProfile(profile));
+ arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared(account_id);
Luis Héctor Chávez 2016/05/17 16:11:55 more or less in the same spirit of other comments
dspaid 2016/05/18 00:11:24 Done.
arc::ArcAuthService* arc_auth_service = arc::ArcAuthService::Get();
DCHECK(arc_auth_service);
arc_auth_service->OnPrimaryUserProfilePrepared(profile);
+ DCHECK(arc::ArcUserDataService::Get());
+ arc::ArcUserDataService::Get()->ClearIfDisabled(profile->GetPrefs(),
+ account_id);
}
}
« no previous file with comments | « no previous file | chromeos/dbus/session_manager_client.h » ('j') | components/arc.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698