Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1140)

Unified Diff: content/browser/devtools/protocol/page_handler.cc

Issue 1013753009: [DevTools] Do not use constants from Page domain which go away. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/page_handler.cc
diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc
index c2931a77843ed7225e99250a9601bba0656fefdd..a06c61feef5da6d1749c059637b3c49c370fd288 100644
--- a/content/browser/devtools/protocol/page_handler.cc
+++ b/content/browser/devtools/protocol/page_handler.cc
@@ -53,12 +53,10 @@ ui::GestureProviderConfigType TouchEmulationConfigurationToType(
const std::string& protocol_value) {
ui::GestureProviderConfigType result =
ui::GestureProviderConfigType::CURRENT_PLATFORM;
- if (protocol_value ==
- set_touch_emulation_enabled::kConfigurationMobile) {
+ if (protocol_value == "mobile") {
result = ui::GestureProviderConfigType::GENERIC_MOBILE;
}
- if (protocol_value ==
- set_touch_emulation_enabled::kConfigurationDesktop) {
+ if (protocol_value == "desktop") {
result = ui::GestureProviderConfigType::GENERIC_DESKTOP;
}
return result;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698