Index: remoting/test/host_list_fetcher.cc |
diff --git a/remoting/test/host_list_fetcher.cc b/remoting/test/host_list_fetcher.cc |
index 09fc3d52da87795128936574ac8a9d7d5c3f5b79..a652d14c21d5ded714963097eed0c2eb01a6caa7 100644 |
--- a/remoting/test/host_list_fetcher.cc |
+++ b/remoting/test/host_list_fetcher.cc |
@@ -11,6 +11,7 @@ |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/values.h" |
#include "net/http/http_status_code.h" |
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h" |
#include "net/url_request/url_fetcher.h" |
#include "remoting/base/url_request_context_getter.h" |
@@ -38,8 +39,8 @@ void HostListFetcher::RetrieveHostlist(const std::string& access_token, |
/*network_runner=*/base::ThreadTaskRunnerHandle::Get(), |
/*file_runner=*/base::ThreadTaskRunnerHandle::Get()); |
- request_ = |
- net::URLFetcher::Create(GURL(target_url), net::URLFetcher::GET, this); |
+ request_ = net::URLFetcher::Create(GURL(target_url), net::URLFetcher::GET, |
+ this, TRAFFIC_ANNOTATION_FOR_TESTS); |
request_->SetRequestContext(request_context_getter_.get()); |
request_->AddExtraRequestHeader("Authorization: OAuth " + access_token); |
request_->Start(); |