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

Unified Diff: ash/display/display_controller.cc

Issue 10800095: Enable extended desktop by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix resource Created 8 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 | « ash/display/display_controller.h ('k') | ash/display/display_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index c0efb51ababc12a872bfbca329077de10751ae7c..a4807ae7e5f18eb887b9a0349c76bda899dda640 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -19,10 +19,6 @@
namespace ash {
namespace internal {
-namespace {
-// True if the extended desktop mode is enabled.
-bool extended_desktop_enabled = false;
-} // namespace
DisplayController::DisplayController()
: secondary_display_layout_(RIGHT) {
@@ -233,14 +229,10 @@ void DisplayController::OnDisplayRemoved(const gfx::Display& display) {
// static
bool DisplayController::IsExtendedDesktopEnabled(){
- return extended_desktop_enabled ||
+ static bool extended_desktop_disabled =
CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshExtendedDesktop);
-}
-
-// static
-void DisplayController::SetExtendedDesktopEnabled(bool enabled) {
- extended_desktop_enabled = enabled;
+ switches::kAshExtendedDesktopDisabled);
+ return !extended_desktop_disabled;
}
aura::RootWindow* DisplayController::AddRootWindowForDisplay(
« no previous file with comments | « ash/display/display_controller.h ('k') | ash/display/display_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698