summaryrefslogtreecommitdiffstats
path: root/ash/test
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-30 01:13:02 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-30 01:13:02 +0000
commitcf1c70ec3602b3392b335b5c6dc5d57bc722ce33 (patch)
treeb11e55644a95caf8e33ced25d6c00ea43d0e5a9a /ash/test
parent966ca7d1b3266bac3995072632ddd5ec2a2e71f5 (diff)
downloadchromium_src-cf1c70ec3602b3392b335b5c6dc5d57bc722ce33.zip
chromium_src-cf1c70ec3602b3392b335b5c6dc5d57bc722ce33.tar.gz
chromium_src-cf1c70ec3602b3392b335b5c6dc5d57bc722ce33.tar.bz2
Remove non ExtededDesktop mode
BUG=135245 TEST=no flags option to disable ExtendedDesktop Review URL: https://chromiumcodereview.appspot.com/10892021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/test')
-rw-r--r--ash/test/ash_test_base.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 717bf51e..80c92a6 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -93,15 +93,13 @@ void AshTestBase::UpdateDisplay(const std::string& display_specs) {
// On non-testing environment, when a secondary display is connected, a new
// native (i.e. X) window for the display is always created below the previous
// one for GPU performance reasons. Try to emulate the behavior.
- if (internal::DisplayController::IsExtendedDesktopEnabled()) {
- Shell::RootWindowList root_windows = Shell::GetAllRootWindows();
- DCHECK_EQ(displays.size(), root_windows.size());
- size_t next_y = 0;
- for (size_t i = 0; i < root_windows.size(); ++i) {
- const gfx::Size size = root_windows[i]->GetHostSize();
- root_windows[i]->SetHostBounds(gfx::Rect(gfx::Point(0, next_y), size));
- next_y += size.height();
- }
+ Shell::RootWindowList root_windows = Shell::GetAllRootWindows();
+ DCHECK_EQ(displays.size(), root_windows.size());
+ size_t next_y = 0;
+ for (size_t i = 0; i < root_windows.size(); ++i) {
+ const gfx::Size size = root_windows[i]->GetHostSize();
+ root_windows[i]->SetHostBounds(gfx::Rect(gfx::Point(0, next_y), size));
+ next_y += size.height();
}
}