-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
14942: Disable FLoC features and the provider service.
- Loading branch information
Showing
7 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
chromium_src/chrome/browser/federated_learning/floc_id_provider_factory.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* 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 "chrome/browser/federated_learning/floc_id_provider_factory.h" | ||
|
||
#include "chrome/browser/federated_learning/floc_remote_permission_service_factory.h" | ||
#include "chrome/browser/history/history_service_factory.h" | ||
#include "chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.h" | ||
#include "chrome/browser/sync/profile_sync_service_factory.h" | ||
#include "chrome/browser/sync/user_event_service_factory.h" | ||
|
||
#define BuildServiceInstanceFor BuildServiceInstanceFor_ChromiumImpl | ||
#include "../../../../../chrome/browser/federated_learning/floc_id_provider_factory.cc" // NOLINT | ||
#undef BuildServiceInstanceFor | ||
|
||
namespace federated_learning { | ||
|
||
// We don't want FLoC: | ||
// https://github.com/brave/brave-browser/issues/14942 | ||
KeyedService* FlocIdProviderFactory::BuildServiceInstanceFor( | ||
content::BrowserContext* context) const { | ||
return nullptr; | ||
} | ||
|
||
} // namespace federated_learning |
18 changes: 18 additions & 0 deletions
18
chromium_src/chrome/browser/federated_learning/floc_id_provider_factory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* 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_CHROME_BROWSER_FEDERATED_LEARNING_FLOC_ID_PROVIDER_FACTORY_H_ | ||
#define BRAVE_CHROMIUM_SRC_CHROME_BROWSER_FEDERATED_LEARNING_FLOC_ID_PROVIDER_FACTORY_H_ | ||
|
||
#include "components/keyed_service/content/browser_context_keyed_service_factory.h" | ||
|
||
#define BuildServiceInstanceFor \ | ||
BuildServiceInstanceFor_ChromiumImpl(content::BrowserContext* context) \ | ||
const; \ | ||
KeyedService* BuildServiceInstanceFor | ||
#include "../../../../../chrome/browser/federated_learning/floc_id_provider_factory.h" | ||
#undef BuildServiceInstanceFor | ||
|
||
#endif // BRAVE_CHROMIUM_SRC_CHROME_BROWSER_FEDERATED_LEARNING_FLOC_ID_PROVIDER_FACTORY_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters