| Index: components/ntp_snippets/ntp_snippets_fetcher.cc
|
| diff --git a/components/ntp_snippets/ntp_snippets_fetcher.cc b/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| index acad45cf88cc3417be13c39811ca99de7c98a917..565725ff28ccfa280c347e00c50d2f55087c70a6 100644
|
| --- a/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "components/data_use_measurement/core/data_use_user_data.h"
|
| #include "google_apis/google_api_keys.h"
|
| #include "net/base/load_flags.h"
|
| #include "net/http/http_request_headers.h"
|
| @@ -93,6 +94,8 @@ void NTPSnippetsFetcher::FetchSnippets(const std::set<std::string>& hosts,
|
| url_fetcher_->SetRequestContext(url_request_context_getter_.get());
|
| url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
|
| net::LOAD_DO_NOT_SAVE_COOKIES);
|
| + data_use_measurement::DataUseUserData::AttachToFetcher(
|
| + url_fetcher_.get(), data_use_measurement::DataUseUserData::NTP_SNIPPETS);
|
| HttpRequestHeaders headers;
|
| headers.SetHeader("Content-Type", "application/json; charset=UTF-8");
|
| url_fetcher_->SetExtraRequestHeaders(headers.ToString());
|
|
|