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

Unified Diff: remoting/test/app_remoting_report_issue_request.cc

Issue 2735683002: Network traffic annotation added to remoting/test. (Closed)
Patch Set: Created 3 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 | remoting/test/host_list_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/app_remoting_report_issue_request.cc
diff --git a/remoting/test/app_remoting_report_issue_request.cc b/remoting/test/app_remoting_report_issue_request.cc
index 570a9a0b3db2d653467dc9390ae43e1a1c3dd60d..1769f239640931bca139183462875e4e4c60551e 100644
--- a/remoting/test/app_remoting_report_issue_request.cc
+++ b/remoting/test/app_remoting_report_issue_request.cc
@@ -10,6 +10,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "net/http/http_response_headers.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"
@@ -54,8 +55,8 @@ bool AppRemotingReportIssueRequest::Start(
std::string upload_data = abandon_host ? "{ 'abandonHost': 'true' }" : "{}";
- request_ =
- net::URLFetcher::Create(GURL(service_url), net::URLFetcher::POST, this);
+ request_ = net::URLFetcher::Create(GURL(service_url), net::URLFetcher::POST,
+ this, TRAFFIC_ANNOTATION_FOR_TESTS);
request_->SetRequestContext(request_context_getter_.get());
request_->AddExtraRequestHeader("Authorization: OAuth " + access_token);
request_->AddExtraRequestHeader(kRequestTestOrigin);
« no previous file with comments | « no previous file | remoting/test/host_list_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698