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

Unified Diff: net/url_request/test_url_fetcher_factory.cc

Issue 2890293005: Network traffic annotation stored in url_request. (Closed)
Patch Set: 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 | « net/url_request/test_url_fetcher_factory.h ('k') | net/url_request/url_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/test_url_fetcher_factory.cc
diff --git a/net/url_request/test_url_fetcher_factory.cc b/net/url_request/test_url_fetcher_factory.cc
index ec9a4546083f8daacc607ca5a56bf78430b0d5f9..dcc3419cfbf0dbde3d3c4ad0bbc26548539f5deb 100644
--- a/net/url_request/test_url_fetcher_factory.cc
+++ b/net/url_request/test_url_fetcher_factory.cc
@@ -333,7 +333,8 @@ std::unique_ptr<URLFetcher> TestURLFetcherFactory::CreateURLFetcher(
int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcherDelegate* d) {
+ URLFetcherDelegate* d,
+ NetworkTrafficAnnotationTag traffic_annotation) {
TestURLFetcher* fetcher = new TestURLFetcher(id, url, d);
if (remove_fetcher_on_delete_)
fetcher->set_owner(this);
@@ -442,7 +443,8 @@ std::unique_ptr<URLFetcher> FakeURLFetcherFactory::CreateURLFetcher(
int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcherDelegate* d) {
+ URLFetcherDelegate* d,
+ NetworkTrafficAnnotationTag traffic_annotation) {
FakeResponseMap::const_iterator it = fake_responses_.find(url);
if (it == fake_responses_.end()) {
if (default_factory_ == NULL) {
@@ -450,7 +452,8 @@ std::unique_ptr<URLFetcher> FakeURLFetcherFactory::CreateURLFetcher(
DLOG(ERROR) << "No baked response for URL: " << url.spec();
return NULL;
} else {
- return default_factory_->CreateURLFetcher(id, url, request_type, d);
+ return default_factory_->CreateURLFetcher(id, url, request_type, d,
+ traffic_annotation);
}
}
@@ -485,9 +488,10 @@ std::unique_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher(
int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcherDelegate* d) {
+ URLFetcherDelegate* d,
+ NetworkTrafficAnnotationTag traffic_annotation) {
return std::unique_ptr<URLFetcher>(
- new URLFetcherImpl(url, request_type, d, TRAFFIC_ANNOTATION_FOR_TESTS));
+ new URLFetcherImpl(url, request_type, d, traffic_annotation));
}
} // namespace net
« no previous file with comments | « net/url_request/test_url_fetcher_factory.h ('k') | net/url_request/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698