| Index: remoting/protocol/port_allocator.cc
|
| diff --git a/remoting/protocol/port_allocator.cc b/remoting/protocol/port_allocator.cc
|
| index 5a0666886139190a2129a153ae684b6e5f530792..9e83213fd6923ee1f41e48a5fb2458541c8f0ab4 100644
|
| --- a/remoting/protocol/port_allocator.cc
|
| +++ b/remoting/protocol/port_allocator.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/strings/string_split.h"
|
| #include "net/base/escape.h"
|
| #include "net/http/http_status_code.h"
|
| +#include "net/traffic_annotation/network_traffic_annotation.h"
|
| #include "remoting/protocol/network_settings.h"
|
| #include "remoting/protocol/transport_context.h"
|
|
|
| @@ -150,9 +151,38 @@ void PortAllocatorSession::TryCreateRelaySession() {
|
| net::EscapeUrlEncodedData(username(), false) +
|
| "&password=" +
|
| net::EscapeUrlEncodedData(password(), false) + "&sn=1";
|
| + net::NetworkTrafficAnnotationTag traffic_annotation =
|
| + net::DefineNetworkTrafficAnnotation("CRD_relay_session_request", R"(
|
| + semantics {
|
| + sender: "Chrome Remote Desktop"
|
| + description:
|
| + "Request is used by Chrome Remote Desktop to allocate relay "
|
| + "session."
|
| + trigger: "Chrome Remote Desktop usage."
|
| + data: "Relay token (received over XMPP)."
|
| + destination: GOOGLE_OWNED_SERVICE
|
| + }
|
| + policy {
|
| + cookies_allowed: false/true
|
| + cookies_store: "..."
|
| + setting:
|
| + "This feature cannot be disabled by settings. You can block Chrome "
|
| + "Remote Desktop as specified here: "
|
| + "https://support.google.com/chrome/a/answer/2799701?hl=en"
|
| + chrome_policy {
|
| + RemoteAccessHostFirewallTraversal {
|
| + policy_options {mode: MANDATORY}
|
| + RemoteAccessHostFirewallTraversal: false
|
| + }
|
| + }
|
| + policy_exception_justification:
|
| + "Above specified policy is only applicable on the host side and "
|
| + "doesn't have effect in Android and iOS client apps. The product "
|
| + "is shipped separately from Chromium, except on Chrome OS."
|
| + })");
|
| std::unique_ptr<UrlRequest> url_request =
|
| transport_context_->url_request_factory()->CreateUrlRequest(
|
| - UrlRequest::Type::GET, url);
|
| + UrlRequest::Type::GET, url, traffic_annotation);
|
| url_request->AddHeader("X-Talk-Google-Relay-Auth: " +
|
| ice_config_.relay_token);
|
| url_request->AddHeader("X-Google-Relay-Auth: " + ice_config_.relay_token);
|
|
|