Index: components/feedback/feedback_uploader_chrome.cc |
diff --git a/components/feedback/feedback_uploader_chrome.cc b/components/feedback/feedback_uploader_chrome.cc |
index 0b18305d920b12584508bebbf8cb9d4b63cfb666..51223ab59c38e4275a9a5aba5110de4bd50f4583 100644 |
--- a/components/feedback/feedback_uploader_chrome.cc |
+++ b/components/feedback/feedback_uploader_chrome.cc |
@@ -20,6 +20,7 @@ |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/storage_partition.h" |
#include "net/base/load_flags.h" |
+#include "net/traffic_annotation/network_traffic_annotation.h" |
#include "net/url_request/url_fetcher.h" |
#include "url/gurl.h" |
@@ -47,14 +48,33 @@ FeedbackUploaderChrome::FeedbackUploaderChrome( |
void FeedbackUploaderChrome::DispatchReport(const std::string& data) { |
GURL post_url(url_); |
+ net::NetworkTrafficAnnotationTag traffic_annotation = |
+ net::DefineNetworkTrafficAnnotation("chrome_feedback_report_app", R"( |
+ semantics { |
+ sender: "Chrome Feedback Report App" |
+ description: |
+ "This uploads the feedback report to Google feedback server." |
Ramin Halavati
2017/03/11 09:42:54
May be it would be good if you describe what is th
afakhry
2017/03/14 01:36:42
I'm not sure how to describe it in a simple way. T
Ramin Halavati
2017/03/14 06:31:57
Thank you, I think this description is quite good.
|
+ trigger: "When the feedback report is being uploaded." |
Ramin Halavati
2017/03/11 09:42:54
Is user asked for sending feedback? In which cases
afakhry
2017/03/14 01:36:42
This is a user-generated event, as a result of pre
Ramin Halavati
2017/03/14 06:31:57
Done.
|
+ data: |
+ "Contents of the report, user entered message, and useful " |
Ramin Halavati
2017/03/11 09:42:54
Can you add details on content items? Is there any
afakhry
2017/03/14 01:36:42
We anonymize the logs to remove any user-private d
Ramin Halavati
2017/03/14 06:31:57
Done.
|
+ "debugging logs." |
+ destination: GOOGLE_OWNED_SERVICE |
+ } |
+ policy { |
+ cookies_allowed: false |
+ setting: "..." |
Ramin Halavati
2017/03/11 09:42:54
I didn't find any settings disabling feedback, is
afakhry
2017/03/14 01:36:42
I'm not aware of any setting to disable feedback.
Ramin Halavati
2017/03/14 06:31:57
Acknowledged.
|
+ policy_exception_justification: "Not implemented." |
+ })"); |
// Note: FeedbackUploaderDelegate deletes itself and the fetcher. |
net::URLFetcher* fetcher = |
net::URLFetcher::Create( |
post_url, net::URLFetcher::POST, |
new FeedbackUploaderDelegate( |
- data, base::Bind(&FeedbackUploaderChrome::UpdateUploadTimer, |
- AsWeakPtr()), |
- base::Bind(&FeedbackUploaderChrome::RetryReport, AsWeakPtr()))) |
+ data, |
+ base::Bind(&FeedbackUploaderChrome::UpdateUploadTimer, |
+ AsWeakPtr()), |
+ base::Bind(&FeedbackUploaderChrome::RetryReport, AsWeakPtr())), |
+ traffic_annotation) |
.release(); |
data_use_measurement::DataUseUserData::AttachToFetcher( |
fetcher, data_use_measurement::DataUseUserData::FEEDBACK_UPLOADER); |