diff --git a/chromium_src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.h b/chromium_src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.h deleted file mode 100644 index 6e02f058e74ea..0000000000000 --- a/chromium_src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.h +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (c) 2022 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 https://mozilla.org/MPL/2.0/. */ - -#ifndef BRAVE_CHROMIUM_SRC_IOS_CHROME_BROWSER_BROWSER_STATE_MODEL_CHROME_BROWSER_STATE_IMPL_H_ -#define BRAVE_CHROMIUM_SRC_IOS_CHROME_BROWSER_BROWSER_STATE_MODEL_CHROME_BROWSER_STATE_IMPL_H_ - -#include "ios/chrome/browser/shared/model/browser_state/chrome_browser_state.h" - -#define GetPolicyConnector \ - GetPolicyConnector_ChromiumImpl(); \ - BrowserStatePolicyConnector* GetPolicyConnector - -#include "src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.h" // IWYU pragma: export -#undef GetPolicyConnector - -#endif // BRAVE_CHROMIUM_SRC_IOS_CHROME_BROWSER_BROWSER_STATE_MODEL_CHROME_BROWSER_STATE_IMPL_H_ diff --git a/chromium_src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.mm b/chromium_src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.mm deleted file mode 100644 index 35edfff5535c8..0000000000000 --- a/chromium_src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.mm +++ /dev/null @@ -1,33 +0,0 @@ -/* Copyright (c) 2022 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 https://mozilla.org/MPL/2.0/. */ - -#include "ios/chrome/browser/browser_state/model/chrome_browser_state_impl.h" - -#include "ios/chrome/browser/browser_state/model/off_the_record_chrome_browser_state_impl.h" -#include "ios/chrome/browser/policy/browser_policy_connector_ios.h" -#include "ios/chrome/browser/policy/browser_state_policy_connector.h" -#include "ios/chrome/browser/policy/browser_state_policy_connector_factory.h" -#include "ios/chrome/browser/shared/model/application_context/application_context.h" - -#define BrowserPolicyConnectorIOS \ - if (false) { \ - BrowserPolicyConnectorIOS - -#undef BuildBrowserStatePolicyConnector -#define BuildBrowserStatePolicyConnector(ARG1, ARG2, ARG3) \ - nullptr; \ - } - -#define GetPolicyConnector GetPolicyConnector_ChromiumImpl - -#include "src/ios/chrome/browser/browser_state/model/chrome_browser_state_impl.mm" - -#undef GetPolicyConnector -#undef BuildBrowserStatePolicyConnector -#undef BrowserPolicyConnectorIOS - -BrowserStatePolicyConnector* ChromeBrowserStateImpl::GetPolicyConnector() { - return nullptr; -} diff --git a/ios/browser/application_context/brave_application_context_impl.h b/ios/browser/application_context/brave_application_context_impl.h index ef0859d7d15d3..bb0cecd6f856a 100644 --- a/ios/browser/application_context/brave_application_context_impl.h +++ b/ios/browser/application_context/brave_application_context_impl.h @@ -36,7 +36,6 @@ class BraveApplicationContextImpl : public ApplicationContextImpl { // ApplicationContextImpl ukm::UkmRecorder* GetUkmRecorder() override; - BrowserPolicyConnectorIOS* GetBrowserPolicyConnector() override; gcm::GCMDriver* GetGCMDriver() override; // BraveApplicationContextImpl diff --git a/ios/browser/application_context/brave_application_context_impl.mm b/ios/browser/application_context/brave_application_context_impl.mm index ba5ad0c0cb7a8..22fa36e4c02b7 100644 --- a/ios/browser/application_context/brave_application_context_impl.mm +++ b/ios/browser/application_context/brave_application_context_impl.mm @@ -35,11 +35,6 @@ return nullptr; } -BrowserPolicyConnectorIOS* -BraveApplicationContextImpl::GetBrowserPolicyConnector() { - return nullptr; -} - gcm::GCMDriver* BraveApplicationContextImpl::GetGCMDriver() { return nullptr; }