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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service_browsertest.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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/session/restore_after_crash_session_manager_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
diff --git a/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc b/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
index 094c8df64b9d4448b070144a6496356c57d9a05f..7cb9af814d2b7b3cf6676acd05db56a29f9d9708 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc
@@ -34,6 +34,7 @@
#include "components/arc/test/fake_arc_bridge_bootstrap.h"
#include "components/arc/test/fake_arc_bridge_instance.h"
#include "components/policy/core/common/policy_switches.h"
+#include "components/prefs/pref_member.h"
#include "components/prefs/pref_service.h"
#include "components/signin/core/account_id/account_id.h"
#include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
@@ -174,13 +175,18 @@ class ArcAuthServiceTest : public InProcessBrowserTest {
GetFakeUserManager()->LoginUser(account_id);
// Set up ARC for test profile.
+ std::unique_ptr<BooleanPrefMember> arc_enabled_pref =
+ base::MakeUnique<BooleanPrefMember>();
+ arc_enabled_pref->Init(prefs::kArcEnabled, profile()->GetPrefs());
ArcServiceManager::Get()->OnPrimaryUserProfilePrepared(
- multi_user_util::GetAccountIdFromProfile(profile()));
+ multi_user_util::GetAccountIdFromProfile(profile()),
+ std::move(arc_enabled_pref));
ArcAuthService::Get()->OnPrimaryUserProfilePrepared(profile());
}
void TearDownOnMainThread() override {
ArcAuthService::Get()->Shutdown();
+ ArcServiceManager::Get()->Shutdown();
profile_.reset();
user_manager_enabler_.reset();
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/session/restore_after_crash_session_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698