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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc

Issue 2485233002: Do not run Android management check for re-auth case. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « chrome/browser/resources/chromeos/arc_support/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
index 2a2dd5ea88700f38a8547aa9dabb2003a4288b6d..70c4bafb7f2ad48fe2c7453f84760bfa1a689be8 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
@@ -3569,10 +3569,12 @@ TEST_F(ChromeLauncherControllerImplWithArcTest, ArcManaged) {
"AppList, Chrome, Play Store");
// Arc is managed and enabled, Play Store pin should be available.
+ // Note: SHOWING_TERMS_OF_SERVICE here means that opt-in flow starts.
profile()->GetTestingPrefService()->SetManagedPref(
prefs::kArcEnabled, new base::FundamentalValue(true));
base::RunLoop().RunUntilIdle();
- ValidateArcState(true, true, arc::ArcAuthService::State::FETCHING_CODE,
+ ValidateArcState(true, true,
+ arc::ArcAuthService::State::SHOWING_TERMS_OF_SERVICE,
"AppList, Chrome, Play Store");
// Arc is managed and disabled, Play Store pin should not be available.
@@ -3590,7 +3592,8 @@ TEST_F(ChromeLauncherControllerImplWithArcTest, ArcManaged) {
// Arc is not managed and enabled, Play Store pin should be available.
EnableArc(true);
- ValidateArcState(true, false, arc::ArcAuthService::State::FETCHING_CODE,
+ ValidateArcState(true, false,
+ arc::ArcAuthService::State::SHOWING_TERMS_OF_SERVICE,
"AppList, Chrome, Play Store");
// User disables Arc. Arc is not managed and disabled, Play Store pin should
@@ -3601,7 +3604,8 @@ TEST_F(ChromeLauncherControllerImplWithArcTest, ArcManaged) {
// Even if re-enable it again, Play Store pin does not appear automatically.
EnableArc(true);
- ValidateArcState(true, false, arc::ArcAuthService::State::FETCHING_CODE,
+ ValidateArcState(true, false,
+ arc::ArcAuthService::State::SHOWING_TERMS_OF_SERVICE,
"AppList, Chrome");
}
« no previous file with comments | « chrome/browser/resources/chromeos/arc_support/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698