#include "chrome/browser/new_tab_page/one_google_bar/one_google_bar_service_factory.h"
#include <optional>
#include <string>
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.h"
#include "chrome/browser/new_tab_page/one_google_bar/one_google_bar_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/account_consistency_mode_manager.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/signin/core/browser/cookie_settings_util.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
OneGoogleBarService* OneGoogleBarServiceFactory::GetForProfile(
Profile* profile) { … }
OneGoogleBarServiceFactory* OneGoogleBarServiceFactory::GetInstance() { … }
OneGoogleBarServiceFactory::OneGoogleBarServiceFactory()
: … { … }
OneGoogleBarServiceFactory::~OneGoogleBarServiceFactory() = default;
std::unique_ptr<KeyedService>
OneGoogleBarServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }