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

Unified Diff: ui/app_list/views/app_list_main_view_unittest.cc

Issue 2339523004: Remove old (dead) app list code. (Closed)
Patch Set: Address nonbistytftatl review. Created 4 years, 3 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: ui/app_list/views/app_list_main_view_unittest.cc
diff --git a/ui/app_list/views/app_list_main_view_unittest.cc b/ui/app_list/views/app_list_main_view_unittest.cc
index ef18a05723ef6072f88fee3743d6b6ea013a2eba..8250efbb20147b4c21d289fa2a75140572b42676 100644
--- a/ui/app_list/views/app_list_main_view_unittest.cc
+++ b/ui/app_list/views/app_list_main_view_unittest.cc
@@ -275,11 +275,9 @@ TEST_F(AppListMainViewTest, MouseHoverToHighlight) {
AppListItemView* item0 = RootViewModel()->view_at(0);
AppListItemView* item1 = RootViewModel()->view_at(1);
- // If experimental launcher, switch to All Apps page
- if (app_list::switches::IsExperimentalAppListEnabled()) {
- GetContentsView()->SetActiveState(AppListModel::STATE_APPS);
- GetContentsView()->Layout();
- }
+ // Switch to All Apps page.
+ GetContentsView()->SetActiveState(AppListModel::STATE_APPS);
+ GetContentsView()->Layout();
generator.MoveMouseTo(item0->GetBoundsInScreen().CenterPoint());
EXPECT_TRUE(item0->is_highlighted());
@@ -310,11 +308,9 @@ TEST_F(AppListMainViewTest, MAYBE_TapGestureToHighlight) {
main_widget_->GetNativeWindow());
AppListItemView* item = RootViewModel()->view_at(0);
- // If experimental launcher, switch to All Apps page
- if (app_list::switches::IsExperimentalAppListEnabled()) {
- GetContentsView()->SetActiveState(AppListModel::STATE_APPS);
- GetContentsView()->Layout();
- }
+ // Switch to All Apps page.
+ GetContentsView()->SetActiveState(AppListModel::STATE_APPS);
+ GetContentsView()->Layout();
generator.set_current_location(item->GetBoundsInScreen().CenterPoint());
generator.PressTouch();

Powered by Google App Engine
This is Rietveld 408576698