[cr145] IWYU for callback_helpers.h

This change does IWYU additions for all cases where `base::DoNothing` is
used. Furthermore, this change removes some of the uses of
`base::DoNothing` as an argument default value in a header, removing the
need to add `callback_helpers.h` to those headers.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e8436cccafc34d6e4d9c060f682345060579d208
https://chromium.googlesource.com/chromium/src/+/227f058d9b9e27370a64b34046d71b9f23106409

commit e8436cccafc34d6e4d9c060f682345060579d208
Author: Lei Zhang <thestig@chromium.org>
Date:   Fri Dec 12 15:16:22 2025 -0800

    Forward declare base::ScopedClosureRunner in some Blink headers

    Avoid including base/functional/callback_helpers.h when not needed. Also
    use base/functional/callback_forward.h since callback_helpers.h was
    providing callback.h. For scrollable_area.h, make this possible by
    getting rid the default arguments to PerformSnapping(),
    SnapAtCurrentPosition(), and SnapForEndPosition(). These methods have
    very few callers, so just pass in all the arguments. Then do IWYU to fix
    the build.

    Change-Id: I5cfd017bd6f392b0d97e99c41d4885fac7140a4c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7254408
    Commit-Queue: Philip Rogers <pdr@chromium.org>
    Auto-Submit: Lei Zhang <thestig@chromium.org>
    Reviewed-by: Philip Rogers <pdr@chromium.org>
    Reviewed-by: Christoph Schwering <schwering@google.com>
    Reviewed-by: Robert Flack <flackr@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1558318}

commit 227f058d9b9e27370a64b34046d71b9f23106409
Author: Lei Zhang <thestig@chromium.org>
Date:   Thu Dec 11 21:30:12 2025 -0800

    Do IWYU for callback_helpers.h in async_dom_storage_database.cc

    Add callback_helpers.h for base::DoNothing() usage. The transitive
    include that makes this work as-is will be deleted in the near future.

    Change-Id: Id5ba6db705434734a854874923b7bb196392ca6c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7253640
    Commit-Queue: Mingyu Lei <leimy@chromium.org>
    Auto-Submit: Lei Zhang <thestig@chromium.org>
    Reviewed-by: Mingyu Lei <leimy@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1557849}
This commit is contained in:
Claudio DeSouza
2026-01-29 13:40:34 -05:00
committed by Max Karolinskiy
parent a0279d227b
commit c164d6759c
84 changed files with 99 additions and 15 deletions
@@ -15,6 +15,7 @@
#include "chrome/common/chrome_paths.h"
#if !BUILDFLAG(IS_ANDROID)
#include "base/functional/callback_helpers.h"
#include "chrome/browser/profiles/profile_window.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
@@ -8,6 +8,7 @@
#include <memory>
#include <string>
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
+2
View File
@@ -44,7 +44,9 @@
#if BUILDFLAG(ENABLE_TOR)
#include <string>
#include "base/files/file_util.h"
#include "base/functional/callback_helpers.h"
#include "brave/components/tor/tor_constants.h"
#include "chrome/browser/browser_process_impl.h"
#include "chrome/browser/profiles/profile_attributes_init_params.h"
@@ -11,6 +11,7 @@
#include "base/containers/fixed_flat_map.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "brave/browser/brave_rewards/rewards_util.h"
@@ -9,6 +9,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "brave/browser/brave_rewards/test/util/rewards_browsertest_context_helper.h"
#include "brave/browser/brave_rewards/test/util/rewards_browsertest_context_util.h"
@@ -7,6 +7,7 @@
#include <unordered_map>
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
@@ -7,6 +7,7 @@
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "brave/components/brave_vpn/common/brave_vpn_utils.h"
@@ -6,6 +6,7 @@
#include <memory>
#include <optional>
#include "base/functional/callback_helpers.h"
#include "base/test/scoped_feature_list.h"
#include "brave/browser/brave_wallet/brave_wallet_service_factory.h"
#include "brave/components/brave_wallet/browser/brave_wallet_service.h"
@@ -9,6 +9,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/types/expected.h"
#include "brave/components/brave_wallet/browser/brave_wallet_utils.h"
#include "brave/components/brave_wallet/browser/permission_utils.h"
@@ -7,6 +7,7 @@
#include <vector>
#include "base/functional/callback_helpers.h"
#include "brave/components/constants/webui_url_constants.h"
#include "chrome/browser/ui/hid/hid_chooser_controller.h"
#include "chrome/grit/generated_resources.h"
@@ -5,6 +5,7 @@
#include <optional>
#include "base/functional/callback_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/path_service.h"
#include "brave/browser/brave_content_browser_client.h"
@@ -10,6 +10,7 @@
#include <vector>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_reader.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
@@ -9,6 +9,7 @@
#include "base/containers/flat_map.h"
#include "base/containers/to_vector.h"
#include "base/feature_list.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/path_service.h"
#include "base/strings/strcat.h"
@@ -5,6 +5,7 @@
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/json/json_reader.h"
#include "base/path_service.h"
#include "base/test/run_until.h"
@@ -365,9 +366,9 @@ IN_PROC_BROWSER_TEST_F(EmailAliasesBrowserTest, ContextMenuAuthorized) {
{
auto initilized = test::AuthStateObserver::Setup(service, true);
}
EmailAliasesAuth auth(
browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()));
EmailAliasesAuth auth(browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()),
base::DoNothing());
auth.SetAuthForTesting("success_token");
ASSERT_TRUE(base::test::RunUntil(
[&]() { return !service->GetAuthTokenForTesting().empty(); }));
@@ -401,9 +402,9 @@ IN_PROC_BROWSER_TEST_F(EmailAliasesBrowserTest, ContextMenuAuthorized) {
}
IN_PROC_BROWSER_TEST_F(EmailAliasesBrowserTest, ContextMenuAuthorizedManage) {
EmailAliasesAuth auth(
browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()));
EmailAliasesAuth auth(browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()),
base::DoNothing());
auth.SetAuthForTesting("success_token");
const GURL settings_page("chrome://settings/email-aliases");
@@ -435,9 +436,9 @@ IN_PROC_BROWSER_TEST_F(EmailAliasesBrowserTest, ContextMenuAuthorizedManage) {
}
IN_PROC_BROWSER_TEST_F(EmailAliasesBrowserTest, ContextMenuAuthorizedCancel) {
EmailAliasesAuth auth(
browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()));
EmailAliasesAuth auth(browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()),
base::DoNothing());
auth.SetAuthForTesting("success_token");
Navigate(GURL("https://a.test/email_aliases/inputs.html"));
@@ -467,9 +468,9 @@ IN_PROC_BROWSER_TEST_F(EmailAliasesBrowserTest, ContextMenuAuthorizedCancel) {
}
IN_PROC_BROWSER_TEST_F(EmailAliasesBrowserTest, LogInLogOut) {
// Prepare auth token
EmailAliasesAuth auth(
browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()));
EmailAliasesAuth auth(browser()->profile()->GetPrefs(),
test::GetEncryptor(g_browser_process->os_crypt_async()),
base::DoNothing());
auth.SetAuthForTesting("success_token");
// Settings in logged-in state
@@ -10,6 +10,7 @@
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "brave/browser/extensions/manifest_v2/features.h"
@@ -6,6 +6,7 @@
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/test/scoped_feature_list.h"
#include "brave/browser/extensions/manifest_v2/brave_extensions_manifest_v2_migrator.h"
+1
View File
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
#include "base/functional/callback_helpers.h"
#include "base/metrics/histogram_macros.h"
#include "brave/components/misc_metrics/pref_names.h"
#include "brave/components/p3a_utils/bucket.h"
@@ -10,6 +10,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
@@ -9,6 +9,7 @@
#include <optional>
#include "base/command_line.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_file_value_serializer.h"
#include "base/notreached.h"
#include "base/path_service.h"
@@ -10,6 +10,7 @@
#include <array>
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/test/mock_callback.h"
#include "base/test/scoped_feature_list.h"
@@ -5,6 +5,7 @@
#include "brave/browser/ui/webui/playlist_active_tab_tracker.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "brave/components/playlist/content/browser/playlist_tab_helper.h"
@@ -7,6 +7,7 @@
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
@@ -10,6 +10,7 @@
#include "base/check.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/gtest_prod_util.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
@@ -5,6 +5,7 @@
#include "brave/components/brave_sync/network_time_helper.h"
#include "base/functional/callback_helpers.h"
#include "base/test/gtest_util.h"
#include "brave/components/brave_sync/brave_sync_prefs.h"
#include "build/build_config.h"
+1
View File
@@ -10,6 +10,7 @@
#include "base/check.h"
#include "base/feature_list.h"
#include "base/functional/callback_helpers.h"
#include "brave/browser/tor/tor_profile_service_factory.h"
#include "brave/components/constants/pref_names.h"
#include "brave/components/tor/tor_constants.h"
@@ -5,6 +5,7 @@
#include "brave/browser/ui/ai_rewriter/ai_rewriter_dialog_delegate.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
@@ -14,6 +14,7 @@
#include "base/check_is_test.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_writer.h"
#include "base/no_destructor.h"
#include "base/strings/strcat.h"
@@ -5,6 +5,7 @@
#include "brave/components/tabs/public/tree_tab_node_tab_collection.h"
#include "base/functional/callback_helpers.h"
#include "base/test/task_environment.h"
#include "brave/components/tabs/public/tree_tab_node.h"
#include "chrome/browser/ui/tabs/tab_group_desktop.h"
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.h"
#include "base/functional/callback_helpers.h"
#include "base/test/run_until.h"
#include "build/build_config.h"
#include "chrome/browser/ui/views/chrome_widget_sublevel.h"
@@ -12,6 +12,7 @@
#include "base/check.h"
#include "base/check_op.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
@@ -4,6 +4,7 @@
* You can obtain one at https://mozilla.org/MPL/2.0/. */
#include "base/files/file_path.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
@@ -10,6 +10,7 @@
#include "base/check.h"
#include "base/check_is_test.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "brave/browser/ui/sidebar/sidebar_controller.h"
#include "brave/browser/ui/sidebar/sidebar_model.h"
#include "brave/components/constants/webui_url_constants.h"
@@ -5,6 +5,7 @@
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/test/run_until.h"
#include "brave/browser/ui/bookmark/bookmark_helper.h"
#include "brave/browser/ui/browser_commands.h"
@@ -7,6 +7,7 @@
#include <string>
#include <vector>
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "base/test/test_future.h"
#include "brave/browser/ui/webui/brave_browser_command/brave_browser_command_handler.h"
@@ -11,6 +11,7 @@
#include "base/barrier_callback.h"
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/functional/callback_helpers.h"
#include "brave/browser/ntp_background/custom_background_file_manager.h"
#include "brave/browser/ntp_background/ntp_background_prefs.h"
#include "brave/components/ntp_background_images/browser/ntp_background_images_data.h"
@@ -8,6 +8,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/utf_string_conversions.h"
#include "base/types/to_address.h"
#include "brave/browser/ntp_background/new_tab_takeover_infobar_delegate.h"
@@ -8,6 +8,7 @@
#include <string>
#include <string_view>
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
@@ -12,6 +12,7 @@
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -10,6 +10,7 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
@@ -10,7 +10,7 @@
#define RegisterWidevineCdmComponent(cus) \
RegisterWidevineCdmComponent( \
cus, base::OnceCallback<void()> callback = base::DoNothing())
cus, base::OnceCallback<void()> callback = base::OnceClosure())
#include <chrome/browser/component_updater/widevine_cdm_component_installer.h> // IWYU pragma: export
@@ -5,6 +5,7 @@
#include "chrome/browser/download/download_item_model.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/download/download_commands.h"
#include "ui/base/clipboard/scoped_clipboard_writer.h"
@@ -3,6 +3,7 @@
* 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 "base/functional/callback_helpers.h"
#include "ui/views/bubble/bubble_dialog_delegate_view.h"
#define SetShowCloseButton(...) SetShowCloseButton(false)
@@ -12,6 +12,7 @@
#include "base/containers/flat_map.h"
#include "base/containers/flat_set.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "components/optimization_guide/core/delivery/optimization_target_model_observer.h"
#include "components/optimization_guide/core/delivery/prediction_model_download_manager.h"
@@ -9,6 +9,7 @@
#include <optional>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
#include "components/update_client/update_client.h"
@@ -9,6 +9,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
@@ -7,6 +7,7 @@
#include <string>
#include "base/functional/callback_helpers.h"
#include "base/scoped_observation.h"
#include "brave/components/ai_chat/core/browser/test/mock_associated_content.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -7,6 +7,7 @@
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/time/time.h"
#include "brave/components/brave_ads/core/internal/ads_client/ads_client_util.h"
#include "brave/components/brave_ads/core/internal/catalog/catalog_info.h"
@@ -18,6 +18,7 @@
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "base/uuid.h"
@@ -12,6 +12,7 @@
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/uuid.h"
#include "brave/components/brave_rewards/core/engine/contribution/contribution.h"
#include "brave/components/brave_rewards/core/engine/database/database.h"
@@ -8,6 +8,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/json/values_util.h"
#include "brave/components/brave_rewards/core/engine/endpoints/request_for.h"
#include "brave/components/brave_rewards/core/engine/util/callback_helpers.h"
@@ -11,6 +11,7 @@
#include "base/check.h"
#include "base/containers/map_util.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_reader.h"
#include "base/strings/escape.h"
#include "base/strings/string_number_conversions.h"
@@ -15,6 +15,7 @@
#include "base/check.h"
#include "base/containers/map_util.h"
#include "base/feature_list.h"
#include "base/functional/callback_helpers.h"
#include "base/uuid.h"
#include "brave/components/brave_rewards/core/engine/constants.h"
#include "brave/components/brave_rewards/core/engine/contribution/contribution.h"
@@ -10,6 +10,7 @@
#include "base/big_endian.h"
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_reader.h"
#include "base/time/time.h"
#include "brave/components/brave_rewards/core/engine/database/database.h"
@@ -12,6 +12,7 @@
#include "base/base64.h"
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/notreached.h"
@@ -9,6 +9,7 @@
#include "base/check.h"
#include "base/feature_list.h"
#include "base/functional/callback_helpers.h"
#include "brave/components/brave_rewards/core/engine/endpoints/request_for.h"
#include "brave/components/brave_rewards/core/engine/notifications/notification_keys.h"
#include "brave/components/brave_rewards/core/engine/util/rewards_prefs.h"
@@ -16,6 +16,7 @@
#include "base/containers/map_util.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_value_converter.h"
#include "base/json/values_util.h"
#include "base/task/thread_pool.h"
@@ -13,6 +13,7 @@
#include "base/check.h"
#include "base/feature_list.h"
#include "base/files/file_path.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr_exclusion.h"
#include "base/memory/raw_ref.h"
#include "base/metrics/histogram_macros.h"
@@ -9,6 +9,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "brave/components/sync/service/brave_sync_service_impl.h"
#include "components/sync_device_info/device_info_sync_service.h"
#include "components/sync_device_info/device_info_tracker.h"
@@ -11,6 +11,7 @@
#include <vector>
#include "base/command_line.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/test/bind.h"
@@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "base/test/scoped_feature_list.h"
@@ -15,6 +15,7 @@
#include "base/barrier_callback.h"
#include "base/base64.h"
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/notimplemented.h"
#include "brave/components/brave_wallet/browser/account_resolver_delegate.h"
@@ -15,6 +15,7 @@
#include "base/compiler_specific.h"
#include "base/containers/to_vector.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/values.h"
#include "brave/components/brave_component_updater/browser/brave_on_demand_updater.h"
#include "brave/components/brave_wallet/browser/blockchain_registry.h"
@@ -8,6 +8,7 @@
#include <utility>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "brave/components/brave_wallet/browser/zcash/zcash_wallet_service.h"
namespace brave_wallet {
@@ -9,6 +9,7 @@
#include <utility>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
@@ -9,6 +9,7 @@
#include <utility>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
@@ -9,6 +9,7 @@
#include <utility>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
@@ -10,6 +10,7 @@
#include <vector>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
@@ -8,6 +8,7 @@
#include <vector>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/task/thread_pool.h"
#include "base/test/mock_callback.h"
#include "base/test/scoped_feature_list.h"
@@ -10,6 +10,7 @@
#include <vector>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "brave/components/brave_wallet/browser/keyring_service.h"
@@ -13,6 +13,7 @@
#include "base/check.h"
#include "base/check_is_test.h"
#include "base/containers/span.h"
#include "base/functional/callback_helpers.h"
#include "base/task/thread_pool.h"
#include "brave/components/brave_wallet/browser/brave_wallet_utils.h"
#include "brave/components/brave_wallet/browser/zcash/zcash_create_transparent_transaction_task.h"
@@ -11,6 +11,7 @@
#include <string>
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/bind.h"
@@ -21,7 +21,7 @@ class EmailAliasesAuth {
explicit EmailAliasesAuth(PrefService* prefs_service,
os_crypt_async::Encryptor encryptor,
OnChangedCallback on_changed = base::DoNothing());
OnChangedCallback on_changed);
~EmailAliasesAuth();
static void RegisterProfilePrefs(PrefRegistrySimple* registry);
@@ -12,6 +12,7 @@
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "base/test/run_until.h"
#include "base/test/scoped_feature_list.h"
@@ -170,7 +171,8 @@ class EmailAliasesAPITest : public ::testing::Test {
}
void SetupAuth(bool auth = true) {
EmailAliasesAuth settings(&prefs_, test::GetEncryptor(os_crypt_.get()));
EmailAliasesAuth settings(&prefs_, test::GetEncryptor(os_crypt_.get()),
base::DoNothing());
if (auth) {
settings.SetAuthForTesting("token456");
} else {
@@ -7,6 +7,7 @@
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/notreached.h"
#include "base/types/cxx23_to_underlying.h"
#include "brave/components/brave_ads/core/browser/service/ads_service.h"
@@ -13,6 +13,7 @@
#include "base/check_op.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/task/thread_pool.h"
@@ -9,6 +9,7 @@
#include "base/base64.h"
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/notreached.h"
#include "base/run_loop.h"
@@ -11,6 +11,7 @@
#include "base/base64.h"
#include "base/files/file_util.h"
#include "base/functional/callback_helpers.h"
#include "base/json/json_writer.h"
#include "base/path_service.h"
#include "base/test/bind.h"
@@ -9,6 +9,7 @@
#include <utility>
#include "base/base64.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
+1
View File
@@ -6,6 +6,7 @@
#include "brave/ios/app/brave_profile_controller.h"
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "brave/components/ai_chat/ios/browser/ai_chat+private.h"
#include "brave/components/ai_chat/ios/browser/ai_chat_delegate.h"
@@ -12,6 +12,7 @@
#include "base/apple/foundation_util.h"
#include "base/check.h"
#include "base/containers/flat_map.h"
#include "base/functional/callback_helpers.h"
#include "base/ios/ios_util.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
@@ -9,6 +9,7 @@
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/sys_string_conversions.h"
#include "brave/ios/browser/api/history/brave_history_observer.h"
@@ -7,6 +7,7 @@
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "brave/components/brave_ads/core/browser/service/ads_service.h"
#include "brave/components/brave_ads/core/browser/service/ads_service_observer.h"
@@ -5,6 +5,7 @@
#include "brave/ios/browser/ui/webui/ai_chat/associated_url_content.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/sys_string_conversions.h"
#include "base/time/time.h"
@@ -6,6 +6,7 @@
#include <memory>
#include <optional>
#include "base/functional/callback_helpers.h"
#include "base/metrics/statistics_recorder.h"
#include "base/path_service.h"
#include "base/test/metrics/histogram_tester.h"