#include "components/optimization_guide/core/optimization_guide_permissions_util.h"
#include <memory>
#include "base/feature_list.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/optimization_guide/core/optimization_guide_switches.h"
#include "components/unified_consent/url_keyed_data_collection_consent_helper.h"
namespace {
bool IsUserConsentedToAnonymousDataCollectionAndAllowedToFetchFromRemoteService(
PrefService* pref_service) { … }
}
namespace optimization_guide {
bool IsUserPermittedToFetchFromRemoteOptimizationGuide(
bool is_off_the_record,
PrefService* pref_service) { … }
}