Index: chrome/browser/devtools/device/port_forwarding_controller.cc |
diff --git a/chrome/browser/devtools/device/port_forwarding_controller.cc b/chrome/browser/devtools/device/port_forwarding_controller.cc |
index 315aa5858e2b82e337cc88408d7c2392d54d3565..e21121220284a1fb3c046fe0d0c0f799161ac76a 100644 |
--- a/chrome/browser/devtools/device/port_forwarding_controller.cc |
+++ b/chrome/browser/devtools/device/port_forwarding_controller.cc |
@@ -31,6 +31,7 @@ |
#include "net/log/net_log_source.h" |
#include "net/log/net_log_with_source.h" |
#include "net/socket/tcp_client_socket.h" |
+#include "third_party/WebKit/public/public_features.h" |
using content::BrowserThread; |
@@ -316,9 +317,9 @@ void PortForwardingController::Connection::SendCommand( |
pending_responses_[id] = |
base::Bind(&Connection::ProcessBindResponse, |
base::Unretained(this), port); |
-#if defined(DEBUG_DEVTOOLS) |
+#if BUILDFLAG(DEBUG_DEVTOOLS) |
port_status_[port] = kStatusConnecting; |
-#endif // defined(DEBUG_DEVTOOLS) |
+#endif // BUILDFLAG(DEBUG_DEVTOOLS) |
} else { |
PortStatusMap::iterator it = port_status_.find(port); |
if (it != port_status_.end() && it->second == kStatusError) { |
@@ -330,9 +331,9 @@ void PortForwardingController::Connection::SendCommand( |
pending_responses_[id] = |
base::Bind(&Connection::ProcessUnbindResponse, |
base::Unretained(this), port); |
-#if defined(DEBUG_DEVTOOLS) |
+#if BUILDFLAG(DEBUG_DEVTOOLS) |
port_status_[port] = kStatusDisconnecting; |
-#endif // defined(DEBUG_DEVTOOLS) |
+#endif // BUILDFLAG(DEBUG_DEVTOOLS) |
} |
web_socket_->SendFrame( |