Commit 9e6963d6 authored by dgozman's avatar dgozman Committed by Commit bot

[DevTools] Do not use constants from Page domain which go away.

BUG=467059
TBR=pfeldman

Review URL: https://codereview.chromium.org/1013753009

Cr-Commit-Position: refs/heads/master@{#321382}
parent cca2195e
...@@ -53,12 +53,10 @@ ui::GestureProviderConfigType TouchEmulationConfigurationToType( ...@@ -53,12 +53,10 @@ ui::GestureProviderConfigType TouchEmulationConfigurationToType(
const std::string& protocol_value) { const std::string& protocol_value) {
ui::GestureProviderConfigType result = ui::GestureProviderConfigType result =
ui::GestureProviderConfigType::CURRENT_PLATFORM; ui::GestureProviderConfigType::CURRENT_PLATFORM;
if (protocol_value == if (protocol_value == "mobile") {
set_touch_emulation_enabled::kConfigurationMobile) {
result = ui::GestureProviderConfigType::GENERIC_MOBILE; result = ui::GestureProviderConfigType::GENERIC_MOBILE;
} }
if (protocol_value == if (protocol_value == "desktop") {
set_touch_emulation_enabled::kConfigurationDesktop) {
result = ui::GestureProviderConfigType::GENERIC_DESKTOP; result = ui::GestureProviderConfigType::GENERIC_DESKTOP;
} }
return result; return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment