diff --git a/app/brave_main_delegate.cc b/app/brave_main_delegate.cc index 399817063eaa..0ca41ddbc998 100644 --- a/app/brave_main_delegate.cc +++ b/app/brave_main_delegate.cc @@ -147,6 +147,7 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) { features::kDefaultEnableOopRasterization.name, network::features::kNetworkService.name, unified_consent::kUnifiedConsent.name, + features::kLookalikeUrlNavigationSuggestionsUI.name, }; command_line.AppendFeatures(enabled_features, disabled_features); diff --git a/app/brave_main_delegate_browsertest.cc b/app/brave_main_delegate_browsertest.cc index 5061ebbbb3c4..29e997329735 100644 --- a/app/brave_main_delegate_browsertest.cc +++ b/app/brave_main_delegate_browsertest.cc @@ -1,18 +1,26 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +/* Copyright (c) 2019 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/ui/browser.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/test/base/in_process_browser_test.h" +#include "chrome/common/chrome_features.h" #include "chrome/common/chrome_switches.h" #include "chrome/browser/domain_reliability/service_factory.h" +#include "components/autofill/core/common/autofill_features.h" +#include "components/unified_consent/feature.h" #include "content/public/browser/render_view_host.h" +#include "content/public/common/content_features.h" #include "content/public/common/web_preferences.h" +#include "gpu/config/gpu_finch_features.h" +#include "services/network/public/cpp/features.h" using BraveMainDelegateBrowserTest = InProcessBrowserTest; -IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DomainReliabilityServiceDisabled) { +IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, + DomainReliabilityServiceDisabled) { EXPECT_TRUE(base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kDisableDomainReliability)); EXPECT_FALSE(domain_reliability::DomainReliabilityServiceFactory:: @@ -28,3 +36,18 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisableHyperlinkAuditing) { contents->GetRenderViewHost()->GetWebkitPreferences(); EXPECT_FALSE(prefs.hyperlink_auditing_enabled); } + +IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) { + const base::Feature* disabled_features[] = { + &autofill::features::kAutofillSaveCardSignInAfterLocalSave, + &autofill::features::kAutofillServerCommunication, + &features::kAudioServiceOutOfProcess, + &features::kDefaultEnableOopRasterization, + &network::features::kNetworkService, + &unified_consent::kUnifiedConsent, + &features::kLookalikeUrlNavigationSuggestionsUI, + }; + + for (const auto* feature : disabled_features) + EXPECT_FALSE(base::FeatureList::IsEnabled(*feature)); +}