summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/window_sizer
diff options
context:
space:
mode:
authorscottmg <scottmg@chromium.org>2016-01-29 18:05:38 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-30 02:06:51 +0000
commit2638f3e513b497fe0f5bfa605fd8be97581577a7 (patch)
tree597d0e94bfb3c3cc472df5f28c81050851942ce8 /chrome/browser/ui/window_sizer
parentbf5d50b8769bc50481fb8359df117149c5283bd9 (diff)
downloadchromium_src-2638f3e513b497fe0f5bfa605fd8be97581577a7.zip
chromium_src-2638f3e513b497fe0f5bfa605fd8be97581577a7.tar.gz
chromium_src-2638f3e513b497fe0f5bfa605fd8be97581577a7.tar.bz2
Remove kViewerConnect and GPU as WARP
I don't think we need WARP other than for Metro. TBR=jam R=sky, jbauman BUG=558054 Review URL: https://codereview.chromium.org/1649213002 Cr-Commit-Position: refs/heads/master@{#372511}
Diffstat (limited to 'chrome/browser/ui/window_sizer')
-rw-r--r--chrome/browser/ui/window_sizer/window_sizer.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/chrome/browser/ui/window_sizer/window_sizer.cc b/chrome/browser/ui/window_sizer/window_sizer.cc
index 8f00e02..e7b478d 100644
--- a/chrome/browser/ui/window_sizer/window_sizer.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer.cc
@@ -154,24 +154,8 @@ class DefaultTargetDisplayProvider : public WindowSizer::TargetDisplayProvider {
gfx::Display GetTargetDisplay(const gfx::Screen* screen,
const gfx::Rect& bounds) const override {
#if defined(USE_ASH)
- bool force_ash = false;
- // On Windows check if the browser is launched to serve ASH. If yes then
- // we should get the display for the corresponding root window created for
- // ASH. This ensures that the display gets the correct workarea, etc.
- // If the ASH shell does not exist then the current behavior is to open
- // browser windows if any on the desktop. Preserve that for now.
- // TODO(ananta).
- // This effectively means that the running browser process is in a split
- // personality mode, part of it running in ASH and the other running in
- // desktop. This may cause apps and other widgets to not work correctly.
- // Revisit and address.
-#if defined(OS_WIN)
- force_ash = ash::Shell::HasInstance() &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kViewerConnect);
-#endif
// Use the target display on ash.
- if (chrome::ShouldOpenAshOnStartup() || force_ash) {
+ if (chrome::ShouldOpenAshOnStartup()) {
aura::Window* target = ash::Shell::GetTargetRootWindow();
return screen->GetDisplayNearestWindow(target);
}