chromium/components/content_settings/browser/ui/cookie_controls_util.cc

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

#include "components/content_settings/browser/ui/cookie_controls_util.h"

#include <memory>
#include <string>

#include "base/notreached.h"
#include "base/time/time.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/ui_base_features.h"

namespace content_settings {
namespace {

// Get the local time, round down to midnight on the current day, and then load
// this time as a base::Time UTC time.  This is unusual, but when we find the
// TimeDelta::InDays() within GetDaysToExpiration() we want to make sure we're
// counting actual days in the local timezone, not actual days in UTC time.
base::Time LocalMidnightAsUTCTime(base::Time t) {}

}  // namespace

// static
int CookieControlsUtil::GetDaysToExpiration(base::Time expiration) {}

// static
const gfx::VectorIcon& CookieControlsUtil::GetEnforcedIcon(
    CookieControlsEnforcement enforcement) {}

// static
std::u16string CookieControlsUtil::GetEnforcedTooltip(
    CookieControlsEnforcement enforcement) {}

}  // namespace content_settings