Skip to content

Commit

Permalink
Merge pull request #8507 from brave/disable_domain_block
Browse files Browse the repository at this point in the history
Disable domain blocking via feature flag
  • Loading branch information
pilgrim-brave authored Apr 13, 2021
2 parents d03430e + 960a588 commit a058db7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "brave/common/brave_switches.h"
#include "brave/common/resource_bundle_helper.h"
#include "brave/components/brave_ads/browser/buildflags/buildflags.h"
#include "brave/components/brave_shields/common/features.h"
#include "brave/renderer/brave_content_renderer_client.h"
#include "brave/utility/brave_content_utility_client.h"
#include "build/build_config.h"
Expand Down Expand Up @@ -237,6 +238,7 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) {
offline_pages::kPrefetchingOfflinePagesFeature.name,
translate::kTranslate.name,
#endif
brave_shields::features::kBraveDomainBlock.name,
};

#if defined(OS_WIN) || defined(OS_MAC) || defined(OS_ANDROID)
Expand Down
2 changes: 2 additions & 0 deletions app/brave_main_delegate_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 "brave/components/brave_shields/common/features.h"
#include "chrome/browser/domain_reliability/service_factory.h"
#include "chrome/browser/sharing/features.h"
#include "chrome/browser/ui/browser.h"
Expand Down Expand Up @@ -80,6 +81,7 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) {
&network_time::kNetworkTimeServiceQuerying,
&safe_browsing::kEnhancedProtection,
&safe_browsing::kEnhancedProtectionMessageInInterstitials,
&brave_shields::features::kBraveDomainBlock,
};

for (const auto* feature : disabled_features)
Expand Down

0 comments on commit a058db7

Please sign in to comment.