910e62b5创建于 1月15日历史提交
// Copyright 2025 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/commerce/core/prefs.h"

#include "base/time/time.h"
#include "components/commerce/core/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_registry_simple.h"

namespace commerce {

void RegisterProfilePrefs(PrefRegistrySimple* registry) {
  registry->RegisterBooleanPref(
      kPriceEmailNotificationsEnabled, false,
      user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
  registry->RegisterTimePref(kCommerceDailyMetricsLastUpdateTime, base::Time());
  registry->RegisterTimePref(kShoppingListBookmarkLastUpdateTime, base::Time());
  registry->RegisterBooleanPref(kShoppingListEnabledPrefName, true);
  registry->RegisterTimePref(kProductSpecificationsEntryPointLastDismissedTime,
                             base::Time());
  registry->RegisterIntegerPref(
      kProductSpecificationsEntryPointShowIntervalInDays, 0);
  registry->RegisterIntegerPref(kProductSpecificationsAcceptedDisclosureVersion,
                                0 /* UNKNOWN */);
  registry->RegisterBooleanPref(kPriceTrackingHomeModuleEnabled, true);
}

}  // namespace commerce