#include "chrome/browser/new_tab_page/new_tab_page_util.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/new_tab_page/modules/modules_switches.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "components/optimization_guide/core/optimization_guide_logger.h"
#include "components/search/ntp_features.h"
#include "components/sync/service/sync_service.h"
#include "components/variations/service/variations_service.h"
namespace {
bool IsOsSupportedForCart() { … }
bool IsOsSupportedForDrive() { … }
bool IsInUS() { … }
}
bool IsCartModuleEnabled() { … }
bool IsDriveModuleEnabled() { … }
bool IsDriveModuleEnabledForProfile(bool is_managed_profile, Profile* profile) { … }
bool IsEnUSLocaleOnlyFeatureEnabled(const base::Feature& ntp_feature) { … }
bool IsFeatureEnabled(const base::Feature& feature) { … }
bool IsFeatureForceEnabled(const base::Feature& feature) { … }
bool IsGoogleCalendarModuleEnabled(bool is_managed_profile) { … }
bool IsOutlookCalendarModuleEnabled(bool is_managed_profile) { … }
std::string GetVariationsServiceCountryCode(
variations::VariationsService* variations_service) { … }
void LogModuleEnablement(const base::Feature& feature,
bool enabled,
const std::string& reason) { … }