Index: base/win/win_util.cc |
diff --git a/base/win/win_util.cc b/base/win/win_util.cc |
index 4e18d40601e16adade436468fb4a285d163a948e..75f1e53c1416c86b4accc7f87bf4733fa6c4a85b 100644 |
--- a/base/win/win_util.cc |
+++ b/base/win/win_util.cc |
@@ -504,9 +504,7 @@ bool IsTabletDevice(std::string* reason) { |
bool slate_power_profile = (role == PlatformRoleSlate); |
bool is_tablet = false; |
- bool is_tablet_pc = false; |
if (mobile_power_profile || slate_power_profile) { |
- is_tablet_pc = !GetSystemMetrics(SM_TABLETPC); |
is_tablet = !GetSystemMetrics(SM_CONVERTIBLESLATEMODE); |
if (!is_tablet) { |
if (reason) { |
@@ -524,7 +522,7 @@ bool IsTabletDevice(std::string* reason) { |
if (reason) |
*reason += "Device role is not mobile or slate.\n"; |
} |
- return is_tablet && is_tablet_pc; |
+ return is_tablet; |
} |
bool DisplayVirtualKeyboard() { |