chromium/chrome/browser/new_tab_page/new_tab_page_util.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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() {}

}  // namespace

// If feature is overridden manually or by finch, read the feature flag value.
// Otherwise filter by os, locale and country code.
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) {}