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

Unified Diff: ash/test/display_manager_test_api.cc

Issue 1150913002: Save and restore unified mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix leak Created 5 years, 7 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 | « ash/test/display_manager_test_api.h ('k') | chrome/browser/chromeos/display/display_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/display_manager_test_api.cc
diff --git a/ash/test/display_manager_test_api.cc b/ash/test/display_manager_test_api.cc
index a52ec03f3e7fdc925d64f829cc4e761d72e3ddd0..751553dc2a726be79ca6728d05c338b00622c071 100644
--- a/ash/test/display_manager_test_api.cc
+++ b/ash/test/display_manager_test_api.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "ash/ash_switches.h"
#include "ash/display/display_info.h"
#include "ash/display/display_manager.h"
#include "ash/display/display_util.h"
@@ -13,6 +14,7 @@
#include "ash/display/mouse_cursor_event_filter.h"
#include "ash/display/unified_mouse_warp_controller.h"
#include "ash/shell.h"
+#include "base/command_line.h"
#include "base/strings/string_split.h"
#include "ui/aura/env.h"
#include "ui/aura/window_event_dispatcher.h"
@@ -92,6 +94,14 @@ bool DisplayManagerTestApi::TestIfMouseWarpsAt(
}
}
+// static
+void DisplayManagerTestApi::EnableUnifiedDesktopForTest() {
+#if defined(OS_CHROMEOS)
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAshEnableUnifiedDesktop);
+#endif
+}
+
DisplayManagerTestApi::DisplayManagerTestApi(DisplayManager* display_manager)
: display_manager_(display_manager) {}
« no previous file with comments | « ash/test/display_manager_test_api.h ('k') | chrome/browser/chromeos/display/display_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698