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

Unified Diff: athena/test/athena_test_helper.cc

Issue 408623003: Minimize HomeCard if the user opens something in the home card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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 | « athena/home/public/home_card.h ('k') | athena/wm/window_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/athena_test_helper.cc
diff --git a/athena/test/athena_test_helper.cc b/athena/test/athena_test_helper.cc
index 2e87d3e600da03d3b6d10f587c57568131221242..682e209a14c5e0d46656989e0d4af9787b28c2d6 100644
--- a/athena/test/athena_test_helper.cc
+++ b/athena/test/athena_test_helper.cc
@@ -7,8 +7,10 @@
#include "athena/main/athena_launcher.h"
#include "athena/test/sample_activity_factory.h"
#include "athena/test/test_app_model_builder.h"
+#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "ui/app_list/app_list_switches.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/env.h"
#include "ui/aura/input_state_lookup.h"
@@ -46,6 +48,10 @@ AthenaTestHelper::~AthenaTestHelper() {
void AthenaTestHelper::SetUp(ui::ContextFactory* context_factory) {
setup_called_ = true;
+ // Force showing in the experimental app-list view.
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ app_list::switches::kEnableExperimentalAppList);
+
aura::Env::CreateInstance(true);
aura::Env::GetInstance()->set_context_factory(context_factory);
« no previous file with comments | « athena/home/public/home_card.h ('k') | athena/wm/window_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698