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

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

Issue 2708923013: Split ArcSessionManager::OnPrimaryUserProfilePrepared(). (Closed)
Patch Set: rebase Created 3 years, 10 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
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 fd07a7d3718885ec34d84f4d82540c14ddaab185..2bbd82e91a429b1036c193a0a68c2356a7d36a67 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
@@ -2136,15 +2136,9 @@ TEST_F(ChromeLauncherControllerImplWithArcTest, ArcAppPin) {
SendListOfArcApps();
EXPECT_EQ("AppList, Chrome, App1, App2", GetPinnedAppStatus());
- // Disable/Enable ARC should persist pin state.
+ // Opt-Out/Opt-In remove item from the shelf.
launcher_controller_->PinAppWithID(arc_app_id);
EXPECT_EQ("AppList, Chrome, App1, App2, Fake App 0", GetPinnedAppStatus());
- arc::ArcSessionManager::Get()->Shutdown();
- EXPECT_EQ("AppList, Chrome, App1, App2, Fake App 0", GetPinnedAppStatus());
- arc::ArcSessionManager::Get()->OnPrimaryUserProfilePrepared(profile());
- EXPECT_EQ("AppList, Chrome, App1, App2, Fake App 0", GetPinnedAppStatus());
-
- // Opt-Out/Opt-In remove item from the shelf.
EnableArc(false);
EXPECT_EQ("AppList, Chrome, App1, App2", GetPinnedAppStatus());
EnableArc(true);

Powered by Google App Engine
This is Rietveld 408576698