[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / ui / gfx / win / metro_mode.cc
blobb9fbb9068d62343700af8c3fd74b2cb62d76be39
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/gfx/win/metro_mode.h"
7 #include "base/win/windows_version.h"
9 namespace gfx {
10 namespace win {
12 bool ShouldUseMetroMode() {
13 if (base::win::GetVersion() < base::win::VERSION_WIN8)
14 return false;
16 // As of now ActivateApplication fails on Windows 10 (Build 9926).
17 // Until there is some clarity on special status of browser in metro mode on
18 // Windows 10, we just disable Chrome metro mode so that browser remains
19 // usable. See crbug.com/470227.
20 if (base::win::GetVersion() >= base::win::VERSION_WIN10)
21 return false;
23 return true;
26 } // namespace win
27 } // namespace gfx