Commit 2e28c192 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

[ios] Use chrome_browser_state_forward.h in /ios/chrome/browser/signin

Instead of forward declaring ChromeBrowserState in the ios
namespace, use a header. This will allow moving the class
to the global namespace without having to change all the
forward declaration at the same time.

This CL was uploaded by git cl split.

R=msarda@chromium.org

Bug: 1042208
Change-Id: I0f478927d6a539c273c124437d83851e69a138b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2010820
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733415}
parent cbae7b33
......@@ -10,13 +10,11 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class AboutSigninInternals;
namespace ios {
class ChromeBrowserState;
// Singleton that owns all AboutSigninInternals and associates them with browser
// states.
class AboutSigninInternalsFactory : public BrowserStateKeyedServiceFactory {
......
......@@ -10,13 +10,11 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class AccountConsistencyService;
namespace ios {
class ChromeBrowserState;
// Singleton that creates the AccountConsistencyService(s) and associates those
// services with browser states.
class AccountConsistencyServiceFactory
......
......@@ -10,13 +10,11 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class AccountReconcilor;
namespace ios {
class ChromeBrowserState;
// Singleton that owns all AccountReconcilors and associates them with browser
// states.
class AccountReconcilorFactory : public BrowserStateKeyedServiceFactory {
......
......@@ -10,15 +10,12 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
namespace user_prefs {
class PrefRegistrySyncable;
}
namespace ios {
class ChromeBrowserState;
}
class AuthenticationService;
class AuthenticationServiceDelegate;
......
......@@ -9,6 +9,7 @@
#include "base/no_destructor.h"
#include "base/observer_list.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class IdentityManagerFactoryObserver;
......@@ -16,10 +17,6 @@ namespace signin {
class IdentityManager;
}
namespace ios {
class ChromeBrowserState;
}
// Singleton that owns all IdentityManager instances and associates them with
// BrowserStates.
class IdentityManagerFactory : public BrowserStateKeyedServiceFactory {
......
......@@ -12,12 +12,9 @@
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/signin/ios/browser/wait_for_network_callback_helper.h"
#include "components/signin/public/base/signin_client.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
#include "net/cookies/cookie_change_dispatcher.h"
namespace ios {
class ChromeBrowserState;
}
// Concrete implementation of SigninClient for //ios/chrome.
class IOSChromeSigninClient : public SigninClient {
public:
......
......@@ -9,12 +9,9 @@
#include "base/macros.h"
#include "components/signin/core/browser/signin_status_metrics_provider_delegate.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
#include "ios/chrome/browser/signin/identity_manager_factory_observer.h"
namespace ios {
class ChromeBrowserState;
}
class IOSChromeSigninStatusMetricsProviderDelegate
: public SigninStatusMetricsProviderDelegate,
public IdentityManagerFactoryObserver {
......
......@@ -8,10 +8,7 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
namespace ios {
class ChromeBrowserState;
}
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class SigninBrowserStateInfoUpdater;
......
......@@ -10,13 +10,10 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class SigninClient;
namespace ios {
class ChromeBrowserState;
}
// Singleton that owns all SigninClients and associates them with
// ios::ChromeBrowserState.
class SigninClientFactory : public BrowserStateKeyedServiceFactory {
......
......@@ -10,13 +10,11 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class SigninErrorController;
namespace ios {
class ChromeBrowserState;
// Singleton that owns all SigninErrorControllers and associates them with
// ios::ChromeBrowserState.
class SigninErrorControllerFactory : public BrowserStateKeyedServiceFactory {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment