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

Unified Diff: remoting/base/chromium_url_request.cc

Issue 2729423003: Network traffic annotation added to chromium_url_request. (Closed)
Patch Set: Annotation updated. Created 3 years, 7 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 | « remoting/base/chromium_url_request.h ('k') | remoting/base/telemetry_log_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/chromium_url_request.cc
diff --git a/remoting/base/chromium_url_request.cc b/remoting/base/chromium_url_request.cc
index e664a567f5b96927325a921e5c965691d5e4498d..ef5ac4550b9699b7ab05c908071baaa40f93d117 100644
--- a/remoting/base/chromium_url_request.cc
+++ b/remoting/base/chromium_url_request.cc
@@ -15,7 +15,8 @@ namespace remoting {
ChromiumUrlRequest::ChromiumUrlRequest(
scoped_refptr<net::URLRequestContextGetter> url_context,
UrlRequest::Type type,
- const std::string& url) {
+ const std::string& url,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) {
net::URLFetcher::RequestType request_type = net::URLFetcher::GET;
switch (type) {
case Type::GET:
@@ -25,7 +26,8 @@ ChromiumUrlRequest::ChromiumUrlRequest(
request_type = net::URLFetcher::POST;
break;
}
- url_fetcher_ = net::URLFetcher::Create(GURL(url), request_type, this);
+ url_fetcher_ = net::URLFetcher::Create(GURL(url), request_type, this,
+ traffic_annotation);
url_fetcher_->SetRequestContext(url_context.get());
url_fetcher_->SetReferrer("https://chrome.google.com/remotedesktop");
url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
@@ -74,8 +76,10 @@ ChromiumUrlRequestFactory::~ChromiumUrlRequestFactory() {}
std::unique_ptr<UrlRequest> ChromiumUrlRequestFactory::CreateUrlRequest(
UrlRequest::Type type,
- const std::string& url) {
- return base::MakeUnique<ChromiumUrlRequest>(url_context_, type, url);
+ const std::string& url,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) {
+ return base::MakeUnique<ChromiumUrlRequest>(url_context_, type, url,
+ traffic_annotation);
}
} // namespace remoting
« no previous file with comments | « remoting/base/chromium_url_request.h ('k') | remoting/base/telemetry_log_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698