| 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 2cb82135958e12b116cb883a50fef15634f8b8c3..7820929cea45bfa15a9e8c6157e825cfbcd8787a 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_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/task_runner_util.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"
|
| @@ -96,6 +97,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());
|
|
|