Index: rlz/lib/financial_ping.cc |
diff --git a/rlz/lib/financial_ping.cc b/rlz/lib/financial_ping.cc |
index b9c200d5e9b6cb6c25b405e2547d9b790ac094f4..5524767ab5f31a06cd11a1543850bbeafa3b6386 100644 |
--- a/rlz/lib/financial_ping.cc |
+++ b/rlz/lib/financial_ping.cc |
@@ -58,6 +58,7 @@ class InternetHandle { |
#include "base/run_loop.h" |
#include "base/time/time.h" |
#include "net/base/load_flags.h" |
+#include "net/traffic_annotation/network_traffic_annotation.h" |
#include "net/url_request/url_fetcher.h" |
#include "net/url_request/url_fetcher_delegate.h" |
#include "net/url_request/url_request_context.h" |
@@ -318,8 +319,29 @@ bool FinancialPing::PingServer(const char* request, std::string* response) { |
kFinancialServer, kFinancialPort, |
request); |
- std::unique_ptr<net::URLFetcher> fetcher = |
- net::URLFetcher::Create(GURL(url), net::URLFetcher::GET, &delegate); |
+ net::NetworkTrafficAnnotationTag traffic_annotation = |
+ net::DefineNetworkTrafficAnnotation("...", R"( |
+ semantics { |
+ sender: "..." |
+ description: "..." |
+ trigger: "..." |
+ data: "..." |
+ destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER |
+ } |
+ policy { |
+ cookies_allowed: false/true |
+ cookies_store: "..." |
+ setting: "..." |
+ policy { |
+ [POLICY_NAME] { |
+ policy_options {mode: MANDATORY/RECOMMENDED/UNSET} |
+ [POLICY_NAME]: ... //(value to disable it) |
+ } |
+ } |
+ policy_exception_justification: "..." |
+ })"); |
+ std::unique_ptr<net::URLFetcher> fetcher = net::URLFetcher::Create( |
+ GURL(url), net::URLFetcher::GET, &delegate, traffic_annotation); |
Roger Tawa OOO till Jul 10th
2017/03/06 16:06:02
net::NetworkTrafficAnnotationTag traffic_annotatio
|
fetcher->SetLoadFlags(net::LOAD_DISABLE_CACHE | |
net::LOAD_DO_NOT_SEND_AUTH_DATA | |