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

Unified Diff: device/test/usb_test_gadget_impl.cc

Issue 2719123003: Network traffic annotation added to usb_test_gadget_impl. (Closed)
Patch Set: Build modified. Created 3 years, 10 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 | « device/test/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/usb_test_gadget_impl.cc
diff --git a/device/test/usb_test_gadget_impl.cc b/device/test/usb_test_gadget_impl.cc
index ddb79c46b51a17ea83afda81ca495fb29f428d13..4c1c47989c4e1e48f08b3b81756e4fefb85d412d 100644
--- a/device/test/usb_test_gadget_impl.cc
+++ b/device/test/usb_test_gadget_impl.cc
@@ -34,6 +34,7 @@
#include "device/usb/usb_service.h"
#include "net/base/escape.h"
#include "net/proxy/proxy_service.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_context.h"
@@ -130,8 +131,8 @@ std::unique_ptr<net::URLFetcher> CreateURLFetcher(
const GURL& url,
net::URLFetcher::RequestType request_type,
net::URLFetcherDelegate* delegate) {
- std::unique_ptr<net::URLFetcher> url_fetcher =
- net::URLFetcher::Create(url, request_type, delegate);
+ std::unique_ptr<net::URLFetcher> url_fetcher = net::URLFetcher::Create(
+ url, request_type, delegate, TRAFFIC_ANNOTATION_FOR_TESTS);
url_fetcher->SetRequestContext(request_context_getter.get());
« no previous file with comments | « device/test/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698