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 0bf9f4a1c750450300e76f083f716aa280578cee..ccb7018afaa46f8ff41aec881ca3ace8d07fb908 100644 |
--- a/components/ntp_snippets/ntp_snippets_fetcher.cc |
+++ b/components/ntp_snippets/ntp_snippets_fetcher.cc |
@@ -25,6 +25,7 @@ |
#include "components/signin/core/browser/profile_oauth2_token_service.h" |
#include "components/signin/core/browser/signin_manager.h" |
#include "components/signin/core/browser/signin_manager_base.h" |
+#include "components/variations/net/variations_http_headers.h" |
#include "components/variations/variations_associated_data.h" |
#include "google_apis/google_api_keys.h" |
#include "net/base/load_flags.h" |
@@ -335,6 +336,7 @@ void NTPSnippetsFetcher::FetchSnippetsImpl(const GURL& url, |
if (!auth_header.empty()) |
headers.SetHeader("Authorization", auth_header); |
headers.SetHeader("Content-Type", "application/json; charset=UTF-8"); |
+ variations::AppendVariationHeaders(url, false, false, &headers); |
Marc Treib
2016/07/19 13:39:54
nit: Maybe add a comment saying what this is for,
sfiera
2016/07/19 13:46:52
Done.
|
url_fetcher_->SetExtraRequestHeaders(headers.ToString()); |
url_fetcher_->SetUploadData("application/json", request); |
// Log the request for debugging network issues. |