diff --git a/build/commands/lib/gnCheck.js b/build/commands/lib/gnCheck.js index b633cf9fe3d2..05808142b215 100644 --- a/build/commands/lib/gnCheck.js +++ b/build/commands/lib/gnCheck.js @@ -10,6 +10,16 @@ const gnCheck = (buildConfig = config.defaultBuildConfig, options = {}) => { config.buildConfig = buildConfig config.update(options) util.run('gn', ['check', config.outputDir], config.defaultOptions) + util.run( + 'python3', + [ + 'buildtools/checkdeps/checkdeps.py', + 'brave', + '--extra-repos=brave', + '--no-resolve-dotdot' + ], + config.defaultOptions + ) } module.exports = gnCheck diff --git a/chromium_src/chrome/renderer/DEPS b/chromium_src/chrome/renderer/DEPS index 8115829ae7da..3bf0f3cd4eeb 100644 --- a/chromium_src/chrome/renderer/DEPS +++ b/chromium_src/chrome/renderer/DEPS @@ -1,4 +1,6 @@ include_rules = [ + "+brave/components/ai_chat/core/common", + "+brave/components/ai_chat/renderer", "+brave/components/body_sniffer", "+brave/components/brave_shields/core/common", "+brave/components/content_settings/renderer", diff --git a/chromium_src/components/content_settings/core/common/cookie_settings_base.cc b/chromium_src/components/content_settings/core/common/cookie_settings_base.cc index 2a6915bd949d..7e4c1993dceb 100644 --- a/chromium_src/components/content_settings/core/common/cookie_settings_base.cc +++ b/chromium_src/components/content_settings/core/common/cookie_settings_base.cc @@ -18,7 +18,6 @@ #include "net/base/features.h" #include "net/base/registry_controlled_domains/registry_controlled_domain.h" #include "net/cookies/site_for_cookies.h" -#include "third_party/abseil-cpp/absl/base/attributes.h" #include "url/gurl.h" #include "url/origin.h" diff --git a/components/DEPS b/components/DEPS index 7566537e6ce8..45b0d513f4bf 100644 --- a/components/DEPS +++ b/components/DEPS @@ -10,3 +10,82 @@ include_rules = [ # these dependencies; see /components/README. "-ipc", ] + +specific_include_rules = { + # IMPORTANT: Do not add new browser tests that depend on //chrome or + # //brave/browser/ to //brave/components. + # + # This is an exclusion list for browser tests written before proper dependency + # checking was implemented. These tests should be migrated out of + # //brave/components into //brave/browser eventually. + "android_page_appearing_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "brave_content_settings_agent_impl_browsertest\.cc": [ + "+chrome", + "+content", + ], + "brave_wayback_machine_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "de_amp_browsertest\.cc": [ + "+chrome", + "+content", + ], + "perf_predictor_tab_helper_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_browsertest_context_helper\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_browsertest_context_helper\.h": [ + "+chrome", + ], + "rewards_browsertest_contribution\.cc": [ + "+chrome", + ], + "rewards_browsertest_response\.cc": [ + "+chrome", + ], + "rewards_browsertest_util\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_contribution_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_flag_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_notification_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_p3a_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_publisher_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "rewards_state_browsertest\.cc": [ + "+brave/browser", + "+chrome", + ], + "webcompat_exceptions_browsertest\.cc": [ + "+brave/browser", + "+chrome", + "+content", + ], +} diff --git a/components/brave_search/renderer/brave_search_service_worker_holder.cc b/components/brave_search/renderer/brave_search_service_worker_holder.cc index 427b63b14a33..c13075b4dd32 100644 --- a/components/brave_search/renderer/brave_search_service_worker_holder.cc +++ b/components/brave_search/renderer/brave_search_service_worker_holder.cc @@ -15,7 +15,6 @@ #include "brave/components/brave_search/common/brave_search_utils.h" #include "brave/components/brave_search/renderer/brave_search_fallback_js_handler.h" #include "content/public/renderer/worker_thread.h" -#include "third_party/abseil-cpp/absl/base/attributes.h" #include "url/gurl.h" namespace brave_search { @@ -25,7 +24,7 @@ namespace { class JsHandlersForCurrentThread; // A thread local pointer for the js handlers available. -ABSL_CONST_INIT thread_local JsHandlersForCurrentThread* current_js_handlers = +constinit thread_local JsHandlersForCurrentThread* current_js_handlers = nullptr; // A scoping class to create a local thread storage for the JS handlers, storing