Skip to content

Commit

Permalink
Uplift of #21511 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds committed Jan 10, 2024
1 parent 8805a46 commit 93c9bdc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions ios/app/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ source_set("app") {
"//components/history/core/browser",
"//components/keyed_service/core",
"//components/password_manager/core/browser",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/send_tab_to_self",
"//components/sync/base",
"//components/sync/service",
Expand Down
1 change: 1 addition & 0 deletions ios/app/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include_rules = [
"+components/history/core/browser",
"+components/keyed_service/core",
"+components/password_manager/core",
"+components/safe_browsing/core/common/safe_browsing_prefs.h",
"+components/send_tab_to_self",
"+ios/public/provider/chrome/browser/chrome_browser_provider.h",
"+ios/public/provider/chrome/browser/overrides/overrides_api.h",
Expand Down
5 changes: 5 additions & 0 deletions ios/app/brave_core_main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "components/keyed_service/core/service_access_type.h"
#include "components/password_manager/core/browser/password_store.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/send_tab_to_self/send_tab_to_self_sync_service.h"
#include "ios/chrome/app/startup/provider_registration.h"
#include "ios/chrome/browser/bookmarks/model/bookmark_undo_service_factory.h"
Expand Down Expand Up @@ -202,6 +203,10 @@ - (instancetype)initWithUserAgent:(NSString*)userAgent
browserStateManager->GetLastUsedBrowserState();
_mainBrowserState = chromeBrowserState;

// Disable Safe-Browsing via Prefs
chromeBrowserState->GetPrefs()->SetBoolean(prefs::kSafeBrowsingEnabled,
false);

// Setup main browser
_browserList = BrowserListFactory::GetForBrowserState(_mainBrowserState);
_browser = Browser::Create(_mainBrowserState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class BraveApplicationContextImpl : public ApplicationContextImpl {

// ApplicationContextImpl
ukm::UkmRecorder* GetUkmRecorder() override;
SafeBrowsingService* GetSafeBrowsingService() override;
BrowserPolicyConnectorIOS* GetBrowserPolicyConnector() override;
gcm::GCMDriver* GetGCMDriver() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
return nullptr;
}

SafeBrowsingService* BraveApplicationContextImpl::GetSafeBrowsingService() {
return nullptr;
}

BrowserPolicyConnectorIOS*
BraveApplicationContextImpl::GetBrowserPolicyConnector() {
return nullptr;
Expand Down

0 comments on commit 93c9bdc

Please sign in to comment.