diff --git a/browser/ai_chat/ai_chat_metrics_browsertest.cc b/browser/ai_chat/ai_chat_metrics_browsertest.cc index 33c031dd36a4..0c3bd6541329 100644 --- a/browser/ai_chat/ai_chat_metrics_browsertest.cc +++ b/browser/ai_chat/ai_chat_metrics_browsertest.cc @@ -46,7 +46,7 @@ class AIChatMetricsTest : public InProcessBrowserTest { protected: base::HistogramTester histogram_tester_; std::unique_ptr menu_; - raw_ptr ai_chat_metrics_; + raw_ptr ai_chat_metrics_; }; IN_PROC_BROWSER_TEST_F(AIChatMetricsTest, ContextMenuActions) { diff --git a/browser/ai_chat/ai_chat_profile_browsertest.cc b/browser/ai_chat/ai_chat_profile_browsertest.cc index cdc6e9f3f457..b7bdca978c53 100644 --- a/browser/ai_chat/ai_chat_profile_browsertest.cc +++ b/browser/ai_chat/ai_chat_profile_browsertest.cc @@ -86,7 +86,7 @@ class AIChatProfileTest : public InProcessBrowserTest, } protected: - raw_ptr browser_ = nullptr; + raw_ptr browser_ = nullptr; }; IN_PROC_BROWSER_TEST_P(AIChatProfileTest, SidebarCheck) { diff --git a/browser/ai_chat/ai_chat_ui_browsertest.cc b/browser/ai_chat/ai_chat_ui_browsertest.cc index ccaa588a28cd..5bf3da579571 100644 --- a/browser/ai_chat/ai_chat_ui_browsertest.cc +++ b/browser/ai_chat/ai_chat_ui_browsertest.cc @@ -224,7 +224,8 @@ class AIChatUIBrowserTest : public InProcessBrowserTest { protected: net::test_server::EmbeddedTestServer https_server_; - raw_ptr chat_tab_helper_ = nullptr; + raw_ptr chat_tab_helper_ = + nullptr; private: content::ContentMockCertVerifier mock_cert_verifier_; diff --git a/browser/brave_ads/ads_service_delegate.h b/browser/brave_ads/ads_service_delegate.h index 7a18de6f1876..959820c3060c 100644 --- a/browser/brave_ads/ads_service_delegate.h +++ b/browser/brave_ads/ads_service_delegate.h @@ -79,7 +79,8 @@ class AdsServiceDelegate : public AdsService::Delegate { search_engines::SearchEngineChoiceService search_engine_choice_service_; raw_ptr adaptive_captcha_service_ = nullptr; - raw_ptr notification_display_service_ = nullptr; + raw_ptr + notification_display_service_ = nullptr; std::unique_ptr notification_ad_platform_bridge_; }; diff --git a/browser/brave_ads/analytics/p3a/brave_stats_helper.h b/browser/brave_ads/analytics/p3a/brave_stats_helper.h index 4c5d9a8b3da0..fc2b21756362 100644 --- a/browser/brave_ads/analytics/p3a/brave_stats_helper.h +++ b/browser/brave_ads/analytics/p3a/brave_stats_helper.h @@ -55,7 +55,7 @@ class BraveStatsHelper : public ProfileManagerObserver, public ProfileObserver { profile_manager_observer_{this}; raw_ptr local_state_; - raw_ptr profile_manager_; + raw_ptr profile_manager_; base::Time testing_first_run_time_; }; diff --git a/browser/brave_ads/analytics/p3a/brave_stats_helper_browsertest.cc b/browser/brave_ads/analytics/p3a/brave_stats_helper_browsertest.cc index 514acbaa4592..f7fc7cc4290a 100644 --- a/browser/brave_ads/analytics/p3a/brave_stats_helper_browsertest.cc +++ b/browser/brave_ads/analytics/p3a/brave_stats_helper_browsertest.cc @@ -48,14 +48,14 @@ class BraveStatsHelperBrowserTest : public PlatformBrowserTest { } base::FilePath profile_one_path_; - raw_ptr profile_one_; + raw_ptr profile_one_; base::FilePath profile_two_path_; - raw_ptr profile_two_; + raw_ptr profile_two_; - raw_ptr profile_manager_; - raw_ptr local_state_; - raw_ptr brave_stats_helper_; + raw_ptr profile_manager_; + raw_ptr local_state_; + raw_ptr brave_stats_helper_; base::HistogramTester histogram_tester_; }; diff --git a/browser/brave_ads/tabs/ads_tab_helper_browsertest.cc b/browser/brave_ads/tabs/ads_tab_helper_browsertest.cc index 4cdadab70b6c..47c11fdf150c 100644 --- a/browser/brave_ads/tabs/ads_tab_helper_browsertest.cc +++ b/browser/brave_ads/tabs/ads_tab_helper_browsertest.cc @@ -448,7 +448,7 @@ class BraveAdsTabHelperTest : public PlatformBrowserTest { base::CallbackListSubscription callback_list_subscription_; - raw_ptr ads_service_mock_ = nullptr; + raw_ptr ads_service_mock_ = nullptr; net::EmbeddedTestServer test_server_{ net::test_server::EmbeddedTestServer::TYPE_HTTPS}; diff --git a/browser/brave_wallet/brave_wallet_event_emitter_browsertest.cc b/browser/brave_wallet/brave_wallet_event_emitter_browsertest.cc index bab60e83ae68..4a3e406adec7 100644 --- a/browser/brave_wallet/brave_wallet_event_emitter_browsertest.cc +++ b/browser/brave_wallet/brave_wallet_event_emitter_browsertest.cc @@ -146,8 +146,9 @@ class BraveWalletEventEmitterTest : public InProcessBrowserTest { private: content::ContentMockCertVerifier mock_cert_verifier_; mojo::Remote json_rpc_service_; - raw_ptr brave_wallet_service_ = nullptr; - raw_ptr keyring_service_ = nullptr; + raw_ptr brave_wallet_service_ = + nullptr; + raw_ptr keyring_service_ = nullptr; std::unique_ptr https_server_; base::test::ScopedFeatureList feature_list_; }; diff --git a/browser/brave_wallet/brave_wallet_service_browsertest.cc b/browser/brave_wallet/brave_wallet_service_browsertest.cc index 2b26a5c736ea..bff5cc9fc300 100644 --- a/browser/brave_wallet/brave_wallet_service_browsertest.cc +++ b/browser/brave_wallet/brave_wallet_service_browsertest.cc @@ -105,7 +105,7 @@ class BraveWalletServiceTest : public InProcessBrowserTest { const net::EmbeddedTestServer* https_server() const { return &https_server_; } private: - raw_ptr wallet_service_ = nullptr; + raw_ptr wallet_service_ = nullptr; net::EmbeddedTestServer https_server_; base::test::ScopedFeatureList feature_list_; }; diff --git a/browser/brave_wallet/brave_wallet_sign_message_browsertest.cc b/browser/brave_wallet/brave_wallet_sign_message_browsertest.cc index b09df037ad74..eb9866650127 100644 --- a/browser/brave_wallet/brave_wallet_sign_message_browsertest.cc +++ b/browser/brave_wallet/brave_wallet_sign_message_browsertest.cc @@ -141,7 +141,8 @@ class BraveWalletSignMessageBrowserTest : public InProcessBrowserTest { } protected: - raw_ptr brave_wallet_service_ = nullptr; + raw_ptr brave_wallet_service_ = + nullptr; std::vector methods_{"signMessage", "signMessageViaSend", "signMessageViaSend2", "signMessageViaSendAsync"}; @@ -150,7 +151,7 @@ class BraveWalletSignMessageBrowserTest : public InProcessBrowserTest { content::ContentMockCertVerifier mock_cert_verifier_; base::test::ScopedFeatureList scoped_feature_list_; net::test_server::EmbeddedTestServer https_server_; - raw_ptr keyring_service_ = nullptr; + raw_ptr keyring_service_ = nullptr; }; IN_PROC_BROWSER_TEST_F(BraveWalletSignMessageBrowserTest, UserApprovedRequest) { diff --git a/browser/brave_wallet/ethereum_provider_browsertest.cc b/browser/brave_wallet/ethereum_provider_browsertest.cc index 07477d11a531..e59374cd3174 100644 --- a/browser/brave_wallet/ethereum_provider_browsertest.cc +++ b/browser/brave_wallet/ethereum_provider_browsertest.cc @@ -108,7 +108,7 @@ class EthereumProviderBrowserTest : public InProcessBrowserTest { private: content::ContentMockCertVerifier mock_cert_verifier_; net::test_server::EmbeddedTestServer https_server_; - raw_ptr keyring_service_ = nullptr; + raw_ptr keyring_service_ = nullptr; }; IN_PROC_BROWSER_TEST_F(EthereumProviderBrowserTest, InactiveTabRequest) { diff --git a/browser/brave_wallet/ethereum_provider_impl_unittest.cc b/browser/brave_wallet/ethereum_provider_impl_unittest.cc index 5d0d468d3b8b..e3f7107e77dd 100644 --- a/browser/brave_wallet/ethereum_provider_impl_unittest.cc +++ b/browser/brave_wallet/ethereum_provider_impl_unittest.cc @@ -942,12 +942,12 @@ class EthereumProviderImplUnitTest : public testing::Test { scoped_refptr shared_url_loader_factory_; base::ScopedTempDir temp_dir_; TestingProfile profile_; - raw_ptr keyring_service_ = nullptr; + raw_ptr keyring_service_ = nullptr; raw_ptr asset_ratio_service_; - raw_ptr tx_service_; + raw_ptr tx_service_; protected: - raw_ptr json_rpc_service_ = nullptr; + raw_ptr json_rpc_service_ = nullptr; std::unique_ptr brave_wallet_service_; }; diff --git a/browser/brave_wallet/send_or_sign_transaction_browsertest.cc b/browser/brave_wallet/send_or_sign_transaction_browsertest.cc index 6a6bfbbd5625..d5b132ac0354 100644 --- a/browser/brave_wallet/send_or_sign_transaction_browsertest.cc +++ b/browser/brave_wallet/send_or_sign_transaction_browsertest.cc @@ -593,10 +593,10 @@ class SendOrSignTransactionBrowserTest : public InProcessBrowserTest { base::test::ScopedFeatureList scoped_feature_list_; net::test_server::EmbeddedTestServer https_server_for_files_; net::test_server::EmbeddedTestServer https_server_for_rpc_; - raw_ptr network_manager_ = nullptr; - raw_ptr keyring_service_ = nullptr; - raw_ptr tx_service_ = nullptr; - raw_ptr json_rpc_service_ = nullptr; + raw_ptr network_manager_ = nullptr; + raw_ptr keyring_service_ = nullptr; + raw_ptr tx_service_ = nullptr; + raw_ptr json_rpc_service_ = nullptr; }; IN_PROC_BROWSER_TEST_F(SendOrSignTransactionBrowserTest, diff --git a/browser/brave_wallet/solana_provider_browsertest.cc b/browser/brave_wallet/solana_provider_browsertest.cc index 3cc3a531d450..2f8fd9a51b1c 100644 --- a/browser/brave_wallet/solana_provider_browsertest.cc +++ b/browser/brave_wallet/solana_provider_browsertest.cc @@ -760,16 +760,17 @@ class SolanaProviderTest : public InProcessBrowserTest { } protected: - raw_ptr brave_wallet_service_ = nullptr; - raw_ptr keyring_service_ = nullptr; + raw_ptr brave_wallet_service_ = + nullptr; + raw_ptr keyring_service_ = nullptr; bool mock_blockhash_is_valid_ = true; private: TestTxServiceObserver observer_; net::test_server::EmbeddedTestServer https_server_for_files_; net::test_server::EmbeddedTestServer https_server_for_rpc_; - raw_ptr tx_service_ = nullptr; - raw_ptr json_rpc_service_ = nullptr; + raw_ptr tx_service_ = nullptr; + raw_ptr json_rpc_service_ = nullptr; }; IN_PROC_BROWSER_TEST_F(SolanaProviderTest, ConnectRequestInProgress) { diff --git a/browser/brave_wallet/wallet_watch_asset_browsertest.cc b/browser/brave_wallet/wallet_watch_asset_browsertest.cc index 120221874b5d..7a1c24e771ce 100644 --- a/browser/brave_wallet/wallet_watch_asset_browsertest.cc +++ b/browser/brave_wallet/wallet_watch_asset_browsertest.cc @@ -105,7 +105,8 @@ class WalletWatchAssetBrowserTest : public InProcessBrowserTest { } protected: - raw_ptr brave_wallet_service_ = nullptr; + raw_ptr brave_wallet_service_ = + nullptr; std::vector methods_{"request", "send1", "send2", "sendAsync"}; std::vector addresses_{ "0x6B175474E89094C44Da98b954EedeAC495271d0F", diff --git a/browser/browsing_data/brave_clear_browsing_data_browsertest.cc b/browser/browsing_data/brave_clear_browsing_data_browsertest.cc index c80501b45eb4..3c341577effd 100644 --- a/browser/browsing_data/brave_clear_browsing_data_browsertest.cc +++ b/browser/browsing_data/brave_clear_browsing_data_browsertest.cc @@ -91,7 +91,7 @@ class BrowserChangeObserver : public BrowserListObserver { } private: - raw_ptr browser_ = nullptr; + raw_ptr browser_ = nullptr; ChangeType type_; base::RunLoop run_loop_; }; diff --git a/browser/component_updater/brave_component_updater_configurator.h b/browser/component_updater/brave_component_updater_configurator.h index 5cf7054485bd..00f09708fcac 100644 --- a/browser/component_updater/brave_component_updater_configurator.h +++ b/browser/component_updater/brave_component_updater_configurator.h @@ -78,7 +78,7 @@ class BraveConfigurator : public update_client::Configurator { friend class base::RefCountedThreadSafe; ConfiguratorImpl configurator_impl_; - const raw_ref + const raw_ref pref_service_; // This member is not owned by this class. std::unique_ptr persisted_data_; scoped_refptr url_loader_factory_; diff --git a/browser/ephemeral_storage/blob_url_browsertest.cc b/browser/ephemeral_storage/blob_url_browsertest.cc index b1cb9d8a13da..00d45a8b9d46 100644 --- a/browser/ephemeral_storage/blob_url_browsertest.cc +++ b/browser/ephemeral_storage/blob_url_browsertest.cc @@ -73,7 +73,7 @@ constexpr char kFetchBlobViaWorkerScript[] = R"( class BlobUrlBrowserTestBase : public EphemeralStorageBrowserTest { public: struct RenderFrameHostBlobData { - raw_ptr rfh; + raw_ptr rfh; GURL blob_url; }; using FramesWithRegisteredBlobs = std::vector; diff --git a/browser/ephemeral_storage/ephemeral_storage_qa_browsertest.cc b/browser/ephemeral_storage/ephemeral_storage_qa_browsertest.cc index fcd10dfcfa35..5543fbc62007 100644 --- a/browser/ephemeral_storage/ephemeral_storage_qa_browsertest.cc +++ b/browser/ephemeral_storage/ephemeral_storage_qa_browsertest.cc @@ -436,8 +436,8 @@ class EphemeralStorageTest : public InProcessBrowserTest { base::test::ScopedFeatureList feature_list_; private: - raw_ptr original_tab_ = nullptr; - raw_ptr tabs_ = nullptr; + raw_ptr original_tab_ = nullptr; + raw_ptr tabs_ = nullptr; }; IN_PROC_BROWSER_TEST_F(EphemeralStorageTest, CrossSiteCookiesBlockedInitial) { diff --git a/browser/farbling/brave_dark_mode_fingerprint_protection_browsertest.cc b/browser/farbling/brave_dark_mode_fingerprint_protection_browsertest.cc index 3522587cb3d9..e47ff82963d5 100644 --- a/browser/farbling/brave_dark_mode_fingerprint_protection_browsertest.cc +++ b/browser/farbling/brave_dark_mode_fingerprint_protection_browsertest.cc @@ -55,7 +55,7 @@ class BraveDarkModeFingerprintProtectionTest : public InProcessBrowserTest { const ui::NativeTheme* GetWebTheme() const override { return theme_; } private: - const raw_ptr theme_; + const raw_ptr theme_; }; class MockColorProviderSource : public ui::ColorProviderSource { diff --git a/browser/net/brave_network_audit_browsertest.cc b/browser/net/brave_network_audit_browsertest.cc index 69672cfcd0bb..5bc031fa3053 100644 --- a/browser/net/brave_network_audit_browsertest.cc +++ b/browser/net/brave_network_audit_browsertest.cc @@ -125,8 +125,8 @@ class BraveNetworkAuditTest : public InProcessBrowserTest { Profile* profile() { return browser()->profile(); } private: - - raw_ptr rewards_service_ = nullptr; + raw_ptr + rewards_service_ = nullptr; base::FilePath net_log_path_; base::FilePath audit_results_path_; diff --git a/browser/net/url_context.h b/browser/net/url_context.h index e287800c963f..076890321f3b 100644 --- a/browser/net/url_context.h +++ b/browser/net/url_context.h @@ -91,17 +91,18 @@ struct BraveRequestInfo { uint64_t request_identifier = 0; size_t next_url_request_index = 0; - raw_ptr browser_context = nullptr; + raw_ptr browser_context = nullptr; raw_ptr headers = nullptr; // The following two sets are populated by |OnBeforeStartTransactionCallback|. // |set_headers| contains headers which values were added or modified. std::set set_headers; std::set removed_headers; - raw_ptr original_response_headers = nullptr; - raw_ptr> override_response_headers = - nullptr; + raw_ptr + original_response_headers = nullptr; + raw_ptr, DanglingUntriaged> + override_response_headers = nullptr; - raw_ptr allowed_unsafe_redirect_url = nullptr; + raw_ptr allowed_unsafe_redirect_url = nullptr; BraveNetworkDelegateEventType event_type = kUnknownEventType; BlockedBy blocked_by = kNotBlocked; std::string mock_data_url; @@ -138,7 +139,7 @@ struct BraveRequestInfo { // We should also remove the one below. friend class ::BraveRequestHandler; - raw_ptr new_url = nullptr; + raw_ptr new_url = nullptr; }; // ResponseListener diff --git a/browser/p3a/p3a_core_metrics.h b/browser/p3a/p3a_core_metrics.h index 138f6d3a2d6d..4080f472e27c 100644 --- a/browser/p3a/p3a_core_metrics.h +++ b/browser/p3a/p3a_core_metrics.h @@ -53,7 +53,7 @@ class BraveWindowTracker : public BrowserListObserver { void UpdateP3AValues() const; base::RepeatingTimer timer_; - raw_ptr local_state_ = nullptr; + raw_ptr local_state_ = nullptr; }; #endif // !BUILDFLAG(IS_ANDROID) diff --git a/browser/permissions/google_sign_in_permission_browsertest.cc b/browser/permissions/google_sign_in_permission_browsertest.cc index 05d772102e92..a91a6f7ac4cd 100644 --- a/browser/permissions/google_sign_in_permission_browsertest.cc +++ b/browser/permissions/google_sign_in_permission_browsertest.cc @@ -335,7 +335,7 @@ class GoogleSignInBrowserTest : public InProcessBrowserTest { content::ContentMockCertVerifier mock_cert_verifier_; std::unique_ptr https_server_; base::test::ScopedFeatureList feature_list_; - raw_ptr current_browser_; + raw_ptr current_browser_; private: std::unique_ptr prompt_factory_; diff --git a/browser/permissions/localhost_access_permission_browsertest.cc b/browser/permissions/localhost_access_permission_browsertest.cc index 8f725456e79f..0bbd9be5d638 100644 --- a/browser/permissions/localhost_access_permission_browsertest.cc +++ b/browser/permissions/localhost_access_permission_browsertest.cc @@ -265,9 +265,9 @@ class LocalhostAccessBrowserTest : public InProcessBrowserTest { std::unique_ptr https_server_; std::unique_ptr localhost_server_; base::test::ScopedFeatureList feature_list_; - raw_ptr current_browser_; + raw_ptr current_browser_; std::unique_ptr source_provider_; - raw_ptr + raw_ptr localhost_permission_component_; private: diff --git a/browser/permissions/permission_manager_browsertest.cc b/browser/permissions/permission_manager_browsertest.cc index 845e67268f3c..7d524d7e1272 100644 --- a/browser/permissions/permission_manager_browsertest.cc +++ b/browser/permissions/permission_manager_browsertest.cc @@ -179,7 +179,8 @@ class PermissionManagerBrowserTest : public InProcessBrowserTest { protected: net::test_server::EmbeddedTestServer https_server_; - raw_ptr permission_manager_ = nullptr; + raw_ptr permission_manager_ = + nullptr; private: base::test::ScopedFeatureList scoped_feature_list_; diff --git a/browser/playlist/playlist_data_source.h b/browser/playlist/playlist_data_source.h index 7929c066828c..bc7a47888102 100644 --- a/browser/playlist/playlist_data_source.h +++ b/browser/playlist/playlist_data_source.h @@ -68,7 +68,7 @@ class PlaylistDataSource : public FaviconSource { const net::HttpByteRange& range, GotRangeDataCallback got_data_callback); - raw_ptr service_ = nullptr; + raw_ptr service_ = nullptr; }; } // namespace playlist diff --git a/browser/renderer_context_menu/brave_mock_render_view_context_menu.h b/browser/renderer_context_menu/brave_mock_render_view_context_menu.h index 8f2edf7ea737..0788504e786d 100644 --- a/browser/renderer_context_menu/brave_mock_render_view_context_menu.h +++ b/browser/renderer_context_menu/brave_mock_render_view_context_menu.h @@ -106,7 +106,7 @@ class BraveMockRenderViewContextMenu : public ui::SimpleMenuModel::Delegate, // An observer used for initializing the status of menu items added in this // test. This is owned by our owner and the owner is responsible for its // lifetime. - raw_ptr observer_ = nullptr; + raw_ptr observer_ = nullptr; // Either a regular profile or an incognito profile. raw_ptr profile_ = nullptr; diff --git a/browser/skus/test/js_skus_api_browsertest.cc b/browser/skus/test/js_skus_api_browsertest.cc index f942e186d757..89a60955f20a 100644 --- a/browser/skus/test/js_skus_api_browsertest.cc +++ b/browser/skus/test/js_skus_api_browsertest.cc @@ -161,7 +161,7 @@ class SkusAPIBrowserTest : public PlatformBrowserTest { content::WebContents* web_contents() { return chrome_test_utils::GetActiveWebContents(this); } - raw_ptr local_state_; + raw_ptr local_state_; protected: net::EmbeddedTestServer https_server_{net::EmbeddedTestServer::TYPE_HTTPS}; diff --git a/browser/tor/test/brave_tor_browsertest.cc b/browser/tor/test/brave_tor_browsertest.cc index 421d5d26867b..555228a88281 100644 --- a/browser/tor/test/brave_tor_browsertest.cc +++ b/browser/tor/test/brave_tor_browsertest.cc @@ -145,7 +145,7 @@ void NonBlockingDelay(base::TimeDelta delay) { class BraveTorBrowserTest : public InProcessBrowserTest { public: struct TorInfo { - raw_ptr tor_profile = nullptr; + raw_ptr tor_profile = nullptr; int tor_pid = 0; }; diff --git a/browser/ui/ai_chat/ai_chat_tab_helper_unittest.cc b/browser/ui/ai_chat/ai_chat_tab_helper_unittest.cc index afbc788cbf46..4fa38922747c 100644 --- a/browser/ui/ai_chat/ai_chat_tab_helper_unittest.cc +++ b/browser/ui/ai_chat/ai_chat_tab_helper_unittest.cc @@ -150,9 +150,10 @@ class AIChatTabHelperUnitTest : public content::RenderViewHostTestHarness, protected: NiceMock favicon_service_; std::unique_ptr> observer_; - raw_ptr helper_; - raw_ptr print_preview_extractor_; - raw_ptr page_content_fetcher_; + raw_ptr helper_; + raw_ptr + print_preview_extractor_; + raw_ptr page_content_fetcher_; bool is_print_preview_supported_ = true; }; diff --git a/browser/ui/commander/commander_service.h b/browser/ui/commander/commander_service.h index 0a65ea237d15..6ea1108ae486 100644 --- a/browser/ui/commander/commander_service.h +++ b/browser/ui/commander/commander_service.h @@ -78,7 +78,7 @@ class CommanderService : public CommanderFrontendDelegate, std::u16string prompt_; std::vector> items_; uint32_t current_result_set_id_ = 0; - raw_ptr last_browser_; + raw_ptr last_browser_; raw_ptr profile_; // Some commands have multiple steps (like move tab to window, pick a diff --git a/browser/ui/sidebar/sidebar_browsertest.cc b/browser/ui/sidebar/sidebar_browsertest.cc index 598f4f7939ca..92bc7ba2f977 100644 --- a/browser/ui/sidebar/sidebar_browsertest.cc +++ b/browser/ui/sidebar/sidebar_browsertest.cc @@ -298,7 +298,7 @@ class SidebarBrowserTest : public InProcessBrowserTest { return false; } - raw_ptr item_added_bubble_anchor_ = nullptr; + raw_ptr item_added_bubble_anchor_ = nullptr; std::unique_ptr run_loop_; base::WeakPtrFactory weak_factory_{this}; }; diff --git a/browser/ui/sidebar/sidebar_controller.h b/browser/ui/sidebar/sidebar_controller.h index 77dcc13ac44f..97d765d00e08 100644 --- a/browser/ui/sidebar/sidebar_controller.h +++ b/browser/ui/sidebar/sidebar_controller.h @@ -90,7 +90,7 @@ class SidebarController : public SidebarService::Observer { raw_ptr browser_ = nullptr; // Interface to view. - raw_ptr sidebar_ = nullptr; + raw_ptr sidebar_ = nullptr; std::unique_ptr sidebar_model_; base::ScopedObservation diff --git a/browser/ui/tabs/shared_pinned_tab_service.cc b/browser/ui/tabs/shared_pinned_tab_service.cc index 8a5db4dbadfc..9c6b75c94a52 100644 --- a/browser/ui/tabs/shared_pinned_tab_service.cc +++ b/browser/ui/tabs/shared_pinned_tab_service.cc @@ -508,7 +508,7 @@ void SharedPinnedTabService::OnTabAdded( pinned_tab_data_.insert( pinned_tab_data_.begin() + contents_with_index.index, {.renderer_data = tab_renderer_data, - .shared_contents = contents_with_index.contents, + .shared_contents = contents_with_index.contents.get(), .contents_owner_model = tab_strip_model}); SynchronizeNewPinnedTab(contents_with_index.index); diff --git a/browser/ui/tabs/shared_pinned_tab_service.h b/browser/ui/tabs/shared_pinned_tab_service.h index 4b80e3f325fe..a97a031d2c8d 100644 --- a/browser/ui/tabs/shared_pinned_tab_service.h +++ b/browser/ui/tabs/shared_pinned_tab_service.h @@ -36,7 +36,7 @@ class SharedPinnedTabService : public KeyedService, public: struct PinnedTabData { TabRendererData renderer_data; - raw_ptr shared_contents = nullptr; + raw_ptr shared_contents = nullptr; raw_ptr contents_owner_model = nullptr; }; diff --git a/browser/ui/tabs/split_view_tab_strip_model_adapter.h b/browser/ui/tabs/split_view_tab_strip_model_adapter.h index bffd09a6170c..7a5bd783a764 100644 --- a/browser/ui/tabs/split_view_tab_strip_model_adapter.h +++ b/browser/ui/tabs/split_view_tab_strip_model_adapter.h @@ -61,7 +61,7 @@ class SplitViewTabStripModelAdapter : public TabStripModelObserver { tiled_tabs_scheduled_to_be_removed_; raw_ref split_view_browser_data_; // owner - raw_ref model_; + raw_ref model_; bool is_in_tab_dragging_ = false; diff --git a/browser/ui/views/brave_actions/brave_actions_container_browsertest.cc b/browser/ui/views/brave_actions/brave_actions_container_browsertest.cc index 12fc3a0cac18..ac5764de7566 100644 --- a/browser/ui/views/brave_actions/brave_actions_container_browsertest.cc +++ b/browser/ui/views/brave_actions/brave_actions_container_browsertest.cc @@ -58,8 +58,8 @@ class BraveActionsContainerTest : public InProcessBrowserTest { } protected: - raw_ptr brave_actions_ = nullptr; - raw_ptr prefs_ = nullptr; + raw_ptr brave_actions_ = nullptr; + raw_ptr prefs_ = nullptr; }; IN_PROC_BROWSER_TEST_F(BraveActionsContainerTest, HideBraveRewardsAction) { diff --git a/browser/ui/views/frame/brave_browser_root_view.h b/browser/ui/views/frame/brave_browser_root_view.h index eb207ac65233..3d6e70efe421 100644 --- a/browser/ui/views/frame/brave_browser_root_view.h +++ b/browser/ui/views/frame/brave_browser_root_view.h @@ -32,7 +32,7 @@ class BraveBrowserRootView : public BrowserRootView, void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override; private: - raw_ptr browser_ = nullptr; + raw_ptr browser_ = nullptr; base::ScopedObservation theme_observation_{this}; }; diff --git a/browser/ui/views/frame/brave_browser_view.h b/browser/ui/views/frame/brave_browser_view.h index 4a72c7105a8f..9460756d2e89 100644 --- a/browser/ui/views/frame/brave_browser_view.h +++ b/browser/ui/views/frame/brave_browser_view.h @@ -213,7 +213,7 @@ class BraveBrowserView : public BrowserView, raw_ptr sidebar_separator_view_ = nullptr; raw_ptr contents_background_view_ = nullptr; raw_ptr vertical_tab_strip_host_view_ = nullptr; - raw_ptr + raw_ptr vertical_tab_strip_widget_delegate_view_ = nullptr; #if defined(USE_AURA) diff --git a/browser/ui/views/frame/brave_browser_view_layout.h b/browser/ui/views/frame/brave_browser_view_layout.h index a24572a2d5f0..2baef7260448 100644 --- a/browser/ui/views/frame/brave_browser_view_layout.h +++ b/browser/ui/views/frame/brave_browser_view_layout.h @@ -65,9 +65,9 @@ class BraveBrowserViewLayout : public BrowserViewLayout { gfx::Insets AdjustInsetsConsideringFrameBorder(const gfx::Insets& insets); #endif - raw_ptr vertical_tab_strip_host_ = nullptr; - raw_ptr reader_mode_toolbar_ = nullptr; - raw_ptr sidebar_container_ = nullptr; + raw_ptr vertical_tab_strip_host_ = nullptr; + raw_ptr reader_mode_toolbar_ = nullptr; + raw_ptr sidebar_container_ = nullptr; raw_ptr sidebar_separator_ = nullptr; raw_ptr contents_background_ = nullptr; }; diff --git a/browser/ui/views/frame/brave_contents_layout_manager_unittest.cc b/browser/ui/views/frame/brave_contents_layout_manager_unittest.cc index 92d4828750e5..b91130869b6a 100644 --- a/browser/ui/views/frame/brave_contents_layout_manager_unittest.cc +++ b/browser/ui/views/frame/brave_contents_layout_manager_unittest.cc @@ -61,12 +61,14 @@ class BraveContentsLayoutManagerUnitTest : public testing::Test { base::test::ScopedFeatureList scoped_feature_; std::unique_ptr contents_container_; - raw_ptr contents_view_ = nullptr; - raw_ptr devtools_view_ = nullptr; - raw_ptr secondary_contents_view_ = nullptr; - raw_ptr secondary_devtools_view_ = nullptr; - raw_ptr split_view_separator_ = nullptr; - raw_ptr layout_manager_ = nullptr; + raw_ptr contents_view_ = nullptr; + raw_ptr devtools_view_ = nullptr; + raw_ptr secondary_contents_view_ = nullptr; + raw_ptr secondary_devtools_view_ = nullptr; + raw_ptr split_view_separator_ = + nullptr; + raw_ptr layout_manager_ = + nullptr; }; TEST_F(BraveContentsLayoutManagerUnitTest, diff --git a/browser/ui/views/playlist/selectable_list_view.h b/browser/ui/views/playlist/selectable_list_view.h index c780fcf42b67..be928840bf83 100644 --- a/browser/ui/views/playlist/selectable_list_view.h +++ b/browser/ui/views/playlist/selectable_list_view.h @@ -192,7 +192,7 @@ class SelectableListView : public views::BoxLayoutView { on_selection_changed_.Run(); } - raw_ptr thumbnail_provider_; + raw_ptr thumbnail_provider_; base::RepeatingCallback on_selection_changed_; diff --git a/browser/ui/views/sidebar/sidebar_show_options_event_detect_widget.h b/browser/ui/views/sidebar/sidebar_show_options_event_detect_widget.h index 9e2b55b17869..d59ee13a07d0 100644 --- a/browser/ui/views/sidebar/sidebar_show_options_event_detect_widget.h +++ b/browser/ui/views/sidebar/sidebar_show_options_event_detect_widget.h @@ -64,7 +64,7 @@ class SidebarShowOptionsEventDetectWidget : public views::ViewObserver, bool sidebar_on_left_ = true; raw_ref browser_view_; - raw_ptr contents_view_ = nullptr; + raw_ptr contents_view_ = nullptr; raw_ref delegate_; std::unique_ptr widget_; base::ScopedObservation observation_{this}; diff --git a/browser/ui/views/split_view/split_view_location_bar_model_delegate.h b/browser/ui/views/split_view/split_view_location_bar_model_delegate.h index 8b4d40dda56b..aa499691c4e7 100644 --- a/browser/ui/views/split_view/split_view_location_bar_model_delegate.h +++ b/browser/ui/views/split_view/split_view_location_bar_model_delegate.h @@ -31,7 +31,7 @@ class SplitViewLocationBarModelDelegate bool ShouldDisplayURL() const override; private: - raw_ptr web_contents_; + raw_ptr web_contents_; }; #endif // BRAVE_BROWSER_UI_VIEWS_SPLIT_VIEW_SPLIT_VIEW_LOCATION_BAR_MODEL_DELEGATE_H_ diff --git a/browser/ui/views/split_view/split_view_separator.h b/browser/ui/views/split_view/split_view_separator.h index 7684278cf4fb..71dc4cb07a09 100644 --- a/browser/ui/views/split_view/split_view_separator.h +++ b/browser/ui/views/split_view/split_view_separator.h @@ -58,9 +58,10 @@ class SplitViewSeparator : public views::ResizeArea, raw_ptr browser_ = nullptr; - raw_ptr resize_area_delegate_ = nullptr; + raw_ptr resize_area_delegate_ = + nullptr; - raw_ptr menu_button_widget_ = nullptr; + raw_ptr menu_button_widget_ = nullptr; base::ScopedObservation parent_widget_observation_{this}; diff --git a/browser/ui/views/tabs/brave_compound_tab_container.h b/browser/ui/views/tabs/brave_compound_tab_container.h index 0374c5af3a6e..d4eee0f49306 100644 --- a/browser/ui/views/tabs/brave_compound_tab_container.h +++ b/browser/ui/views/tabs/brave_compound_tab_container.h @@ -73,9 +73,9 @@ class BraveCompoundTabContainer : public CompoundTabContainer { int GetAvailableWidthConsideringScrollBar(); - base::raw_ref tab_slot_controller_; + raw_ref tab_slot_controller_; - base::raw_ptr scroll_view_ = nullptr; + raw_ptr scroll_view_ = nullptr; }; #endif // BRAVE_BROWSER_UI_VIEWS_TABS_BRAVE_COMPOUND_TAB_CONTAINER_H_ diff --git a/browser/ui/views/toolbar/brave_toolbar_view_browsertest.cc b/browser/ui/views/toolbar/brave_toolbar_view_browsertest.cc index 6d8d50dce3d1..972363f79ec5 100644 --- a/browser/ui/views/toolbar/brave_toolbar_view_browsertest.cc +++ b/browser/ui/views/toolbar/brave_toolbar_view_browsertest.cc @@ -142,8 +142,9 @@ class BraveToolbarViewTest : public InProcessBrowserTest { } #endif - raw_ptr toolbar_button_provider_ = nullptr; - raw_ptr toolbar_view_ = nullptr; + raw_ptr toolbar_button_provider_ = + nullptr; + raw_ptr toolbar_view_ = nullptr; #if BUILDFLAG(ENABLE_BRAVE_VPN) || BUILDFLAG(ENABLE_AI_CHAT) testing::NiceMock provider_; diff --git a/browser/ui/views/toolbar/wallet_button_notification_source_browsertest.cc b/browser/ui/views/toolbar/wallet_button_notification_source_browsertest.cc index 965b0744ff59..d9a73315e9b5 100644 --- a/browser/ui/views/toolbar/wallet_button_notification_source_browsertest.cc +++ b/browser/ui/views/toolbar/wallet_button_notification_source_browsertest.cc @@ -207,10 +207,11 @@ class WalletButtonNotificationSourceTest : public InProcessBrowserTest { } private: - raw_ptr network_manager_; - raw_ptr keyring_service_; - raw_ptr tx_service_; - raw_ptr json_rpc_service_ = nullptr; + raw_ptr network_manager_; + raw_ptr keyring_service_; + raw_ptr tx_service_; + raw_ptr json_rpc_service_ = + nullptr; net::test_server::EmbeddedTestServer https_server_for_rpc_; }; diff --git a/browser/ui/wallet_bubble_manager_delegate_impl.cc b/browser/ui/wallet_bubble_manager_delegate_impl.cc index df1bd9259459..adbf490eebee 100644 --- a/browser/ui/wallet_bubble_manager_delegate_impl.cc +++ b/browser/ui/wallet_bubble_manager_delegate_impl.cc @@ -175,8 +175,9 @@ class WalletWebUIBubbleManager : public WebUIBubbleManagerImpl, const raw_ptr browser_; const raw_ptr anchor_view_; std::unique_ptr brave_observer_; - raw_ptr bubble_view_ = nullptr; - raw_ptr web_ui_contents_for_testing_ = nullptr; + raw_ptr bubble_view_ = nullptr; + raw_ptr + web_ui_contents_for_testing_ = nullptr; base::WeakPtrFactory weak_factory_{this}; }; diff --git a/browser/ui/webui/brave_wallet/wallet_panel_ui_browsertest.cc b/browser/ui/webui/brave_wallet/wallet_panel_ui_browsertest.cc index 8a540f30d403..22b5e3d9dfa3 100644 --- a/browser/ui/webui/brave_wallet/wallet_panel_ui_browsertest.cc +++ b/browser/ui/webui/brave_wallet/wallet_panel_ui_browsertest.cc @@ -249,9 +249,10 @@ class WalletPanelUIBrowserTest : public InProcessBrowserTest { } private: - raw_ptr wallet_ = nullptr; - raw_ptr settings_ = nullptr; - raw_ptr brave_wallet_service_ = nullptr; + raw_ptr wallet_ = nullptr; + raw_ptr settings_ = nullptr; + raw_ptr + brave_wallet_service_ = nullptr; network::TestURLLoaderFactory url_loader_factory_; scoped_refptr shared_url_loader_factory_; }; diff --git a/browser/ui/webui/new_tab_page/brave_new_tab_ui_browsertest.cc b/browser/ui/webui/new_tab_page/brave_new_tab_ui_browsertest.cc index 49b86fec7faf..a9bbb8008568 100644 --- a/browser/ui/webui/new_tab_page/brave_new_tab_ui_browsertest.cc +++ b/browser/ui/webui/new_tab_page/brave_new_tab_ui_browsertest.cc @@ -35,7 +35,7 @@ class ObserverLogger : public RenderProcessHostObserver { observed_host_->RemoveObserver(this); EXPECT_EQ(info.exit_code, 0); } - raw_ptr observed_host_ = nullptr; + raw_ptr observed_host_ = nullptr; }; } // namespace diff --git a/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.cc b/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.cc index 08064c813d1b..216915e26b39 100644 --- a/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.cc +++ b/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.cc @@ -81,7 +81,7 @@ class DontAskAgainCheckbox : public views::Checkbox { private: void ButtonPressed(); - raw_ptr request_ = nullptr; + raw_ptr request_ = nullptr; }; BEGIN_METADATA(DontAskAgainCheckbox) @@ -191,7 +191,8 @@ class PermissionLifetimeCombobox : public views::Combobox, } const raw_ref dialog_delegate_view_; - const raw_ref delegate_; + const raw_ref + delegate_; std::vector lifetime_options_; }; diff --git a/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc b/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc index f3a317fb63c8..5b5044cd966f 100644 --- a/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc +++ b/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc @@ -188,7 +188,7 @@ class PrivacySandboxSettingsTest : public testing::Test { tracking_protection_settings_; std::unique_ptr privacy_sandbox_settings_; - raw_ptr mock_delegate_; + raw_ptr mock_delegate_; }; TEST_F(PrivacySandboxSettingsTest, PreferenceOverridesDefaultContentSetting) { diff --git a/components/ai_chat/content/browser/ai_chat_tab_helper.h b/components/ai_chat/content/browser/ai_chat_tab_helper.h index f4309abc9399..b671d90bed28 100644 --- a/components/ai_chat/content/browser/ai_chat_tab_helper.h +++ b/components/ai_chat/content/browser/ai_chat_tab_helper.h @@ -185,7 +185,8 @@ class AIChatTabHelper : public content::WebContentsObserver, uint8_t check_pdf_a11y_tree_attempts_ = 0; bool is_page_loaded_ = false; - raw_ptr inner_web_contents_ = nullptr; + raw_ptr inner_web_contents_ = + nullptr; // TODO(petemill): Use signal to allow for multiple callbacks GetPageContentCallback pending_get_page_content_callback_; diff --git a/components/ai_chat/content/browser/page_content_fetcher.h b/components/ai_chat/content/browser/page_content_fetcher.h index b339c68589b5..18712ff096b7 100644 --- a/components/ai_chat/content/browser/page_content_fetcher.h +++ b/components/ai_chat/content/browser/page_content_fetcher.h @@ -45,7 +45,7 @@ class PageContentFetcher : public AIChatTabHelper::PageContentFetcherDelegate { } private: - raw_ptr web_contents_; + raw_ptr web_contents_; scoped_refptr url_loader_factory_; }; diff --git a/components/ai_chat/core/browser/ai_chat_service_unittest.cc b/components/ai_chat/core/browser/ai_chat_service_unittest.cc index 0f6a9fc0d3bf..22c508e80b46 100644 --- a/components/ai_chat/core/browser/ai_chat_service_unittest.cc +++ b/components/ai_chat/core/browser/ai_chat_service_unittest.cc @@ -172,7 +172,7 @@ class MockConversationHandlerClient : public mojom::ConversationUI { private: mojo::Receiver conversation_ui_receiver_{this}; mojo::Remote conversation_handler_remote_; - raw_ptr conversation_handler_; + raw_ptr conversation_handler_; }; class MockAssociatedContent diff --git a/components/ai_chat/core/browser/conversation_handler.h b/components/ai_chat/core/browser/conversation_handler.h index 01e9b01a5810..b39e7828c8fb 100644 --- a/components/ai_chat/core/browser/conversation_handler.h +++ b/components/ai_chat/core/browser/conversation_handler.h @@ -365,10 +365,10 @@ class ConversationHandler : public mojom::ConversationHandler, // Data store UUID for conversation raw_ptr metadata_; - raw_ptr ai_chat_service_; + raw_ptr ai_chat_service_; raw_ptr model_service_; - raw_ptr credential_manager_; - raw_ptr feedback_api_; + raw_ptr credential_manager_; + raw_ptr feedback_api_; scoped_refptr url_loader_factory_; base::ScopedObservation diff --git a/components/ai_chat/core/browser/engine/conversation_api_client.h b/components/ai_chat/core/browser/engine/conversation_api_client.h index 03349a220949..9fe7f545a9f2 100644 --- a/components/ai_chat/core/browser/engine/conversation_api_client.h +++ b/components/ai_chat/core/browser/engine/conversation_api_client.h @@ -110,7 +110,7 @@ class ConversationAPIClient { const std::string model_name_; std::unique_ptr api_request_helper_; - raw_ptr credential_manager_; + raw_ptr credential_manager_; base::WeakPtrFactory weak_ptr_factory_{this}; }; diff --git a/components/brave_component_updater/browser/brave_component.h b/components/brave_component_updater/browser/brave_component.h index 5ad80a2cc83d..4ff27af4889b 100644 --- a/components/brave_component_updater/browser/brave_component.h +++ b/components/brave_component_updater/browser/brave_component.h @@ -100,7 +100,7 @@ class BraveComponent { std::string component_name_; std::string component_id_; std::string component_base64_public_key_; - raw_ptr delegate_ = nullptr; // NOT OWNED + raw_ptr delegate_ = nullptr; // NOT OWNED base::WeakPtrFactory weak_factory_; }; diff --git a/components/brave_component_updater/browser/brave_on_demand_updater.h b/components/brave_component_updater/browser/brave_on_demand_updater.h index 30452aa5d05f..2626bc848442 100644 --- a/components/brave_component_updater/browser/brave_on_demand_updater.h +++ b/components/brave_component_updater/browser/brave_on_demand_updater.h @@ -48,7 +48,8 @@ class BraveOnDemandUpdater { BraveOnDemandUpdater(); ~BraveOnDemandUpdater(); - raw_ptr on_demand_updater_ = nullptr; + raw_ptr + on_demand_updater_ = nullptr; }; } // namespace brave_component_updater diff --git a/components/brave_rewards/browser/rewards_service_impl.h b/components/brave_rewards/browser/rewards_service_impl.h index b93cd20e240f..70644311373a 100644 --- a/components/brave_rewards/browser/rewards_service_impl.h +++ b/components/brave_rewards/browser/rewards_service_impl.h @@ -528,7 +528,7 @@ class RewardsServiceImpl final : public RewardsService, safetynet_check::SafetyNetCheckRunner safetynet_check_runner_; #endif raw_ptr prefs_; // NOT OWNED - raw_ptr favicon_service_; // NOT OWNED + raw_ptr favicon_service_; const RequestImageCallback request_image_callback_; const CancelImageRequestCallback cancel_image_request_callback_; raw_ptr storage_partition_; // NOT OWNED diff --git a/components/brave_rewards/browser/test/common/rewards_browsertest_context_helper.h b/components/brave_rewards/browser/test/common/rewards_browsertest_context_helper.h index 5cb699ad7d58..13cb48127b9e 100644 --- a/components/brave_rewards/browser/test/common/rewards_browsertest_context_helper.h +++ b/components/brave_rewards/browser/test/common/rewards_browsertest_context_helper.h @@ -40,7 +40,7 @@ class RewardsBrowserTestContextHelper { private: void OpenPopup(); - raw_ptr browser_ = nullptr; // NOT OWNED + raw_ptr browser_ = nullptr; // NOT OWNED base::WeakPtr popup_contents_; }; diff --git a/components/brave_rewards/browser/test/common/rewards_browsertest_contribution.h b/components/brave_rewards/browser/test/common/rewards_browsertest_contribution.h index 936064c993e0..3bd7943cd556 100644 --- a/components/brave_rewards/browser/test/common/rewards_browsertest_contribution.h +++ b/components/brave_rewards/browser/test/common/rewards_browsertest_contribution.h @@ -120,8 +120,9 @@ class RewardsBrowserTestContribution : public RewardsServiceObserver { std::unique_ptr wait_for_ac_completed_loop_; mojom::Result ac_reconcile_status_ = mojom::Result::FAILED; - raw_ptr browser_ = nullptr; // NOT OWNED - raw_ptr rewards_service_ = nullptr; // NOT OWNED + raw_ptr browser_ = nullptr; // NOT OWNED + raw_ptr rewards_service_ = + nullptr; // NOT OWNED std::unique_ptr context_helper_; }; diff --git a/components/brave_rewards/browser/test/rewards_browsertest.cc b/components/brave_rewards/browser/test/rewards_browsertest.cc index 28ac305775cf..57b7653df307 100644 --- a/components/brave_rewards/browser/test/rewards_browsertest.cc +++ b/components/brave_rewards/browser/test/rewards_browsertest.cc @@ -152,7 +152,7 @@ class RewardsBrowserTest : public InProcessBrowserTest { } base::test::ScopedFeatureList feature_list_; - raw_ptr rewards_service_ = nullptr; + raw_ptr rewards_service_ = nullptr; std::unique_ptr https_server_; std::unique_ptr response_; std::unique_ptr contribution_; diff --git a/components/brave_rewards/browser/test/rewards_contribution_browsertest.cc b/components/brave_rewards/browser/test/rewards_contribution_browsertest.cc index 67786c6996fe..29f4dc02515e 100644 --- a/components/brave_rewards/browser/test/rewards_contribution_browsertest.cc +++ b/components/brave_rewards/browser/test/rewards_contribution_browsertest.cc @@ -139,7 +139,7 @@ class RewardsContributionBrowserTest : public InProcessBrowserTest { response_->SetSKUOrder(std::move(order)); } - raw_ptr rewards_service_ = nullptr; + raw_ptr rewards_service_ = nullptr; std::unique_ptr https_server_; std::unique_ptr contribution_; std::unique_ptr response_; diff --git a/components/brave_rewards/browser/test/rewards_flag_browsertest.cc b/components/brave_rewards/browser/test/rewards_flag_browsertest.cc index 5024fb8512a3..ed2ee74a2e87 100644 --- a/components/brave_rewards/browser/test/rewards_flag_browsertest.cc +++ b/components/brave_rewards/browser/test/rewards_flag_browsertest.cc @@ -88,7 +88,7 @@ class RewardsFlagBrowserTest : public InProcessBrowserTest { return rewards_service_->GetDefaultServerEnvironment(); } - raw_ptr rewards_service_ = nullptr; + raw_ptr rewards_service_ = nullptr; std::unique_ptr https_server_; std::unique_ptr response_; }; diff --git a/components/brave_rewards/browser/test/rewards_p3a_browsertest.cc b/components/brave_rewards/browser/test/rewards_p3a_browsertest.cc index 4f2198fda006..3cf93c367502 100644 --- a/components/brave_rewards/browser/test/rewards_p3a_browsertest.cc +++ b/components/brave_rewards/browser/test/rewards_p3a_browsertest.cc @@ -121,7 +121,7 @@ class RewardsP3ABrowserTest : public InProcessBrowserTest, } } - raw_ptr rewards_service_ = nullptr; + raw_ptr rewards_service_ = nullptr; std::unique_ptr https_server_; std::unique_ptr contribution_; std::unique_ptr response_; diff --git a/components/brave_rewards/browser/test/rewards_publisher_browsertest.cc b/components/brave_rewards/browser/test/rewards_publisher_browsertest.cc index 5d8d768164a3..420010e4daaa 100644 --- a/components/brave_rewards/browser/test/rewards_publisher_browsertest.cc +++ b/components/brave_rewards/browser/test/rewards_publisher_browsertest.cc @@ -92,7 +92,7 @@ class RewardsPublisherBrowserTest : public InProcessBrowserTest { return browser()->tab_strip_model()->GetActiveWebContents(); } - raw_ptr rewards_service_ = nullptr; + raw_ptr rewards_service_ = nullptr; std::unique_ptr https_server_; std::unique_ptr response_; std::unique_ptr context_helper_; diff --git a/components/brave_rewards/browser/test/rewards_state_browsertest.cc b/components/brave_rewards/browser/test/rewards_state_browsertest.cc index b298edcab149..0ecfb342af4a 100644 --- a/components/brave_rewards/browser/test/rewards_state_browsertest.cc +++ b/components/brave_rewards/browser/test/rewards_state_browsertest.cc @@ -179,8 +179,8 @@ class RewardsStateBrowserTest : public InProcessBrowserTest { ASSERT_TRUE(base::CopyFile(test_path, profile_path)); } - raw_ptr rewards_service_ = nullptr; - raw_ptr profile_ = nullptr; + raw_ptr rewards_service_ = nullptr; + raw_ptr profile_ = nullptr; std::unique_ptr https_server_; std::unique_ptr response_; }; diff --git a/components/brave_sync/network_time_helper.h b/components/brave_sync/network_time_helper.h index 159af655e21b..a17805643068 100644 --- a/components/brave_sync/network_time_helper.h +++ b/components/brave_sync/network_time_helper.h @@ -49,7 +49,8 @@ class NetworkTimeHelper { SEQUENCE_CHECKER(sequence_checker_); // Not owned - raw_ptr network_time_tracker_ = nullptr; + raw_ptr + network_time_tracker_ = nullptr; base::WeakPtrFactory weak_ptr_factory_{this}; }; diff --git a/components/brave_wallet/browser/bitcoin/bitcoin_wallet_service.h b/components/brave_wallet/browser/bitcoin/bitcoin_wallet_service.h index f9e38b106b2f..e8609474d80c 100644 --- a/components/brave_wallet/browser/bitcoin/bitcoin_wallet_service.h +++ b/components/brave_wallet/browser/bitcoin/bitcoin_wallet_service.h @@ -171,7 +171,7 @@ class BitcoinWalletService : public mojom::BitcoinWalletService, const mojom::BitcoinSignature& hw_signature); void CreateTransactionTaskDone(CreateTransactionTask* task); - raw_ptr keyring_service_; + raw_ptr keyring_service_; scoped_refptr url_loader_factory_; std::list> create_transaction_tasks_; std::list> diff --git a/components/brave_wallet/browser/brave_wallet_p3a_unittest.cc b/components/brave_wallet/browser/brave_wallet_p3a_unittest.cc index 423e5c2cb23d..949e6c8001f3 100644 --- a/components/brave_wallet/browser/brave_wallet_p3a_unittest.cc +++ b/components/brave_wallet/browser/brave_wallet_p3a_unittest.cc @@ -351,8 +351,8 @@ class BraveWalletP3AUnitTest : public testing::Test { sync_preferences::TestingPrefServiceSyncable local_state_; std::unique_ptr histogram_tester_; std::unique_ptr bitcoin_test_rpc_server_; - raw_ptr keyring_service_; - raw_ptr tx_service_; + raw_ptr keyring_service_; + raw_ptr tx_service_; std::unique_ptr brave_wallet_service_; raw_ptr wallet_p3a_; scoped_refptr shared_url_loader_factory_; diff --git a/components/brave_wallet/browser/eth_block_tracker.h b/components/brave_wallet/browser/eth_block_tracker.h index 76e6f131baf2..44767c6aa162 100644 --- a/components/brave_wallet/browser/eth_block_tracker.h +++ b/components/brave_wallet/browser/eth_block_tracker.h @@ -68,7 +68,7 @@ class EthBlockTracker : public BlockTracker { std::map current_block_map_; base::ObserverList observers_; - raw_ptr json_rpc_service_ = nullptr; + raw_ptr json_rpc_service_ = nullptr; base::WeakPtrFactory weak_factory_; }; diff --git a/components/brave_wallet/browser/eth_logs_tracker.h b/components/brave_wallet/browser/eth_logs_tracker.h index b7165dba80be..500e566a1a78 100644 --- a/components/brave_wallet/browser/eth_logs_tracker.h +++ b/components/brave_wallet/browser/eth_logs_tracker.h @@ -60,7 +60,7 @@ class EthLogsTracker { const std::string& error_message); base::RepeatingTimer timer_; - raw_ptr json_rpc_service_ = nullptr; + raw_ptr json_rpc_service_ = nullptr; std::map eth_logs_subscription_info_; diff --git a/components/brave_wallet/browser/ethereum_provider_impl.h b/components/brave_wallet/browser/ethereum_provider_impl.h index 6d3b548ac05d..8b6399564352 100644 --- a/components/brave_wallet/browser/ethereum_provider_impl.h +++ b/components/brave_wallet/browser/ethereum_provider_impl.h @@ -294,10 +294,11 @@ class EthereumProviderImpl final : public mojom::EthereumProvider, raw_ptr host_content_settings_map_ = nullptr; std::unique_ptr delegate_; mojo::Remote events_listener_; - raw_ptr brave_wallet_service_ = nullptr; - raw_ptr json_rpc_service_ = nullptr; - raw_ptr tx_service_ = nullptr; - raw_ptr keyring_service_ = nullptr; + raw_ptr brave_wallet_service_ = + nullptr; + raw_ptr json_rpc_service_ = nullptr; + raw_ptr tx_service_ = nullptr; + raw_ptr keyring_service_ = nullptr; base::flat_map chain_callbacks_; base::flat_map chain_ids_; base::flat_map add_tx_callbacks_; @@ -316,7 +317,7 @@ class EthereumProviderImpl final : public mojom::EthereumProvider, EthBlockTracker eth_block_tracker_; EthLogsTracker eth_logs_tracker_; bool first_known_accounts_check_ = true; - const raw_ptr prefs_ = nullptr; + const raw_ptr prefs_ = nullptr; bool wallet_onboarding_shown_ = false; base::WeakPtrFactory weak_factory_{this}; }; diff --git a/components/brave_wallet/browser/json_rpc_service.h b/components/brave_wallet/browser/json_rpc_service.h index 686a564d7eab..bf7ee292923f 100644 --- a/components/brave_wallet/browser/json_rpc_service.h +++ b/components/brave_wallet/browser/json_rpc_service.h @@ -818,8 +818,8 @@ class JsonRpcService : public mojom::JsonRpcService { mojo::ReceiverSet receivers_; raw_ptr network_manager_ = nullptr; - const raw_ptr prefs_ = nullptr; - const raw_ptr local_state_prefs_ = nullptr; + const raw_ptr prefs_ = nullptr; + const raw_ptr local_state_prefs_ = nullptr; std::unique_ptr nft_metadata_fetcher_; std::unique_ptr simple_hash_client_; base::WeakPtrFactory weak_ptr_factory_{this}; diff --git a/components/brave_wallet/browser/network_manager.h b/components/brave_wallet/browser/network_manager.h index 8c677e8ae36d..9a93eca9669c 100644 --- a/components/brave_wallet/browser/network_manager.h +++ b/components/brave_wallet/browser/network_manager.h @@ -83,7 +83,7 @@ class NetworkManager { const std::string& network_id); private: - raw_ptr prefs_ = nullptr; + raw_ptr prefs_ = nullptr; }; } // namespace brave_wallet diff --git a/components/brave_wallet/browser/nft_metadata_fetcher.h b/components/brave_wallet/browser/nft_metadata_fetcher.h index 33589d99a811..e416996e8442 100644 --- a/components/brave_wallet/browser/nft_metadata_fetcher.h +++ b/components/brave_wallet/browser/nft_metadata_fetcher.h @@ -103,7 +103,7 @@ class NftMetadataFetcher { scoped_refptr url_loader_factory_; std::unique_ptr api_request_helper_; raw_ptr json_rpc_service_ = nullptr; - raw_ptr prefs_ = nullptr; + raw_ptr prefs_ = nullptr; base::WeakPtrFactory weak_ptr_factory_; }; diff --git a/components/brave_wallet/browser/solana_provider_impl.h b/components/brave_wallet/browser/solana_provider_impl.h index f1070a3cf2f1..f890a19325b0 100644 --- a/components/brave_wallet/browser/solana_provider_impl.h +++ b/components/brave_wallet/browser/solana_provider_impl.h @@ -168,10 +168,11 @@ class SolanaProviderImpl final : public mojom::SolanaProvider, const raw_ref host_content_settings_map_; bool account_creation_shown_ = false; mojo::Remote events_listener_; - raw_ptr brave_wallet_service_ = nullptr; - raw_ptr keyring_service_ = nullptr; - raw_ptr tx_service_ = nullptr; - raw_ptr json_rpc_service_ = nullptr; + raw_ptr brave_wallet_service_ = + nullptr; + raw_ptr keyring_service_ = nullptr; + raw_ptr tx_service_ = nullptr; + raw_ptr json_rpc_service_ = nullptr; mojo::Receiver keyring_observer_receiver_{ this}; mojo::Receiver tx_observer_receiver_{this}; diff --git a/components/brave_wallet/browser/tx_storage_delegate_impl.h b/components/brave_wallet/browser/tx_storage_delegate_impl.h index ae8605860153..febf9e050c16 100644 --- a/components/brave_wallet/browser/tx_storage_delegate_impl.h +++ b/components/brave_wallet/browser/tx_storage_delegate_impl.h @@ -80,7 +80,7 @@ class TxStorageDelegateImpl final : public TxStorageDelegate { std::unique_ptr store_; - raw_ptr prefs_; + raw_ptr prefs_; base::WeakPtrFactory weak_factory_{this}; }; diff --git a/components/brave_wallet/browser/wallet_data_files_installer_unittest.cc b/components/brave_wallet/browser/wallet_data_files_installer_unittest.cc index 44549676194b..ed9025bea57e 100644 --- a/components/brave_wallet/browser/wallet_data_files_installer_unittest.cc +++ b/components/brave_wallet/browser/wallet_data_files_installer_unittest.cc @@ -230,7 +230,7 @@ class WalletDataFilesInstallerUnitTest : public testing::Test { network::TestURLLoaderFactory url_loader_factory_; scoped_refptr shared_url_loader_factory_; data_decoder::test::InProcessDataDecoder in_process_data_decoder_; - raw_ptr keyring_service_; + raw_ptr keyring_service_; std::unique_ptr brave_wallet_service_; std::unique_ptr cus_; base::FilePath install_dir_; diff --git a/components/brave_wallet/browser/zcash/zcash_block_tracker.h b/components/brave_wallet/browser/zcash/zcash_block_tracker.h index bad5c5d0783f..b5e2f689ca60 100644 --- a/components/brave_wallet/browser/zcash/zcash_block_tracker.h +++ b/components/brave_wallet/browser/zcash/zcash_block_tracker.h @@ -50,7 +50,7 @@ class ZCashBlockTracker : public BlockTracker { std::map latest_height_map_; base::ObserverList observers_; - raw_ptr zcash_rpc_ = nullptr; + raw_ptr zcash_rpc_ = nullptr; base::WeakPtrFactory weak_ptr_factory_{this}; }; diff --git a/components/brave_wallet/browser/zcash/zcash_tx_manager.h b/components/brave_wallet/browser/zcash/zcash_tx_manager.h index b2d115e5c686..9c2bcfda8570 100644 --- a/components/brave_wallet/browser/zcash/zcash_tx_manager.h +++ b/components/brave_wallet/browser/zcash/zcash_tx_manager.h @@ -85,7 +85,7 @@ class ZCashTxManager : public TxManager, public ZCashBlockTracker::Observer { base::expected confirm_status); raw_ptr zcash_wallet_service_ = nullptr; - raw_ptr zcash_rpc_ = nullptr; + raw_ptr zcash_rpc_ = nullptr; base::ScopedObservation block_tracker_observation_{this}; base::WeakPtrFactory weak_factory_{this}; diff --git a/components/de_amp/browser/test/de_amp_browsertest.cc b/components/de_amp/browser/test/de_amp_browsertest.cc index fa1484f28662..013762bb6ed1 100644 --- a/components/de_amp/browser/test/de_amp_browsertest.cc +++ b/components/de_amp/browser/test/de_amp_browsertest.cc @@ -222,7 +222,7 @@ class DeAmpBrowserTest : public InProcessBrowserTest { private: content::ContentMockCertVerifier mock_cert_verifier_; - raw_ptr prefs_; + raw_ptr prefs_; }; IN_PROC_BROWSER_TEST_F(DeAmpBrowserTest, SimpleDeAmp) { diff --git a/components/ntp_background_images/browser/ntp_custom_images_source.h b/components/ntp_background_images/browser/ntp_custom_images_source.h index 0f48f1031534..8ffba93f3601 100644 --- a/components/ntp_background_images/browser/ntp_custom_images_source.h +++ b/components/ntp_background_images/browser/ntp_custom_images_source.h @@ -43,7 +43,8 @@ class NTPCustomImagesSource : public content::URLDataSource { GotDataCallback callback); void OnGotImageFile(GotDataCallback callback, const std::string& input); - raw_ptr service_ = nullptr; // not owned + raw_ptr service_ = + nullptr; // not owned base::WeakPtrFactory weak_factory_; }; diff --git a/components/p3a/constellation_log_store.h b/components/p3a/constellation_log_store.h index c37380b069f6..32577a4209ab 100644 --- a/components/p3a/constellation_log_store.h +++ b/components/p3a/constellation_log_store.h @@ -86,7 +86,7 @@ class ConstellationLogStore : public metrics::LogStore { size_t GetMaxEpochsToRetain() const; - const raw_ref local_state_; + const raw_ref local_state_; MetricLogType log_type_; base::flat_map log_; diff --git a/components/p3a/message_manager.h b/components/p3a/message_manager.h index eff42f665b31..8b55ebfc2db4 100644 --- a/components/p3a/message_manager.h +++ b/components/p3a/message_manager.h @@ -123,7 +123,7 @@ class MessageManager : public MetricLogStore::Delegate { bool IsActualMetric(const std::string& histogram_name) const override; bool IsEphemeralMetric(const std::string& histogram_name) const override; - const raw_ref local_state_; + const raw_ref local_state_; MessageMetainfo message_meta_; diff --git a/components/p3a/metric_log_store.h b/components/p3a/metric_log_store.h index ac5da4185238..b1b4c7b8d228 100644 --- a/components/p3a/metric_log_store.h +++ b/components/p3a/metric_log_store.h @@ -102,7 +102,7 @@ class MetricLogStore : public metrics::LogStore { const char* GetPrefName() const; const raw_ref delegate_; - const raw_ref local_state_; + const raw_ref local_state_; MetricLogType type_; diff --git a/components/p3a/p3a_message.h b/components/p3a/p3a_message.h index 6a099552093a..dc401ba4fa9f 100644 --- a/components/p3a/p3a_message.h +++ b/components/p3a/p3a_message.h @@ -59,7 +59,7 @@ class MessageMetainfo { // attributes. void MaybeStripCountry(); - raw_ptr local_state_ = nullptr; + raw_ptr local_state_ = nullptr; }; base::Value::Dict GenerateP3AMessageDict(std::string_view metric_name, diff --git a/components/p3a/rotation_scheduler.h b/components/p3a/rotation_scheduler.h index 5582d38f97cd..8a216a3c72b3 100644 --- a/components/p3a/rotation_scheduler.h +++ b/components/p3a/rotation_scheduler.h @@ -65,7 +65,7 @@ class RotationScheduler { base::flat_map last_json_rotation_times_; base::flat_map last_constellation_rotation_times_; - const raw_ref local_state_; + const raw_ref local_state_; const raw_ptr config_; }; diff --git a/components/p3a/star_randomness_meta.h b/components/p3a/star_randomness_meta.h index bfdadd70c66b..7c7b3d2e37c5 100644 --- a/components/p3a/star_randomness_meta.h +++ b/components/p3a/star_randomness_meta.h @@ -109,7 +109,7 @@ class StarRandomnessMeta { scoped_refptr url_loader_factory_; - const raw_ptr local_state_; + const raw_ptr local_state_; base::flat_map> update_states_; diff --git a/components/playlist/browser/media_detector_component_manager.h b/components/playlist/browser/media_detector_component_manager.h index bd420f238506..645e6484860f 100644 --- a/components/playlist/browser/media_detector_component_manager.h +++ b/components/playlist/browser/media_detector_component_manager.h @@ -65,7 +65,8 @@ class MediaDetectorComponentManager { void OnGetScripts(const ScriptMap& script_map); bool register_requested_ = false; - raw_ptr component_update_service_; + raw_ptr + component_update_service_; std::string media_source_api_suppressor_; std::string base_script_; diff --git a/components/speedreader/tts_player.h b/components/speedreader/tts_player.h index ade834c80537..25ebacdd0964 100644 --- a/components/speedreader/tts_player.h +++ b/components/speedreader/tts_player.h @@ -99,8 +99,10 @@ class TtsPlayer { raw_ptr owner_ = nullptr; - raw_ptr playing_web_contents_ = nullptr; - raw_ptr request_web_contents_ = nullptr; + raw_ptr playing_web_contents_ = + nullptr; + raw_ptr request_web_contents_ = + nullptr; int paragraph_index_ = -1; int reading_start_position_ = 0; diff --git a/components/tor/tor_profile_service_impl.h b/components/tor/tor_profile_service_impl.h index 4112b98c4296..ca71695be4ac 100644 --- a/components/tor/tor_profile_service_impl.h +++ b/components/tor/tor_profile_service_impl.h @@ -82,7 +82,7 @@ class TorProfileServiceImpl raw_ptr tor_pluggable_transport_updater_ = nullptr; raw_ptr tor_launcher_factory_ = nullptr; // Singleton - raw_ptr proxy_config_service_ = + raw_ptr proxy_config_service_ = nullptr; // NOT OWNED PrefChangeRegistrar pref_change_registrar_; std::unique_ptr builtin_bridges_request_; diff --git a/components/webcompat_reporter/browser/webcompat_reporter_service_unittest.cc b/components/webcompat_reporter/browser/webcompat_reporter_service_unittest.cc index 2262f7160c11..8a2041848f11 100644 --- a/components/webcompat_reporter/browser/webcompat_reporter_service_unittest.cc +++ b/components/webcompat_reporter/browser/webcompat_reporter_service_unittest.cc @@ -76,7 +76,7 @@ class WebcompatReporterServiceUnitTest : public testing::Test { } protected: - raw_ptr delegate_; + raw_ptr delegate_; std::unique_ptr webcompat_reporter_service_; base::test::TaskEnvironment task_environment_{ base::test::TaskEnvironment::TimeSource::MOCK_TIME};