Skip to content

Commit

Permalink
8049: Never send header with variations.
Browse files Browse the repository at this point in the history
  • Loading branch information
iefremov committed Feb 9, 2021
1 parent 03c51f9 commit 01b9331
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chromium_src/components/variations/variations_ids_provider.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* Copyright (c) 2021 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "components/variations/variations_ids_provider.h"

#define GetClientDataHeaders GetClientDataHeaders_Chromium
#include "../../../../components/variations/variations_ids_provider.cc"
#undef GetClientDataHeaders
16 changes: 16 additions & 0 deletions chromium_src/components/variations/variations_ids_provider.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Copyright (c) 2021 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef BRAVE_CHROMIUM_SRC_COMPONENTS_VARIATIONS_VARIATIONS_IDS_PROVIDER_H_
#define BRAVE_CHROMIUM_SRC_COMPONENTS_VARIATIONS_VARIATIONS_IDS_PROVIDER_H_

#define GetClientDataHeaders \
GetClientDataHeaders(bool is_signed_in) { return nullptr; } \
variations::mojom::VariationsHeadersPtr GetClientDataHeaders_Chromium

#include "../../../../components/variations/variations_ids_provider.h"
#undef GetClientDataHeaders

#endif // BRAVE_CHROMIUM_SRC_COMPONENTS_VARIATIONS_VARIATIONS_IDS_PROVIDER_H_

0 comments on commit 01b9331

Please sign in to comment.