#include "components/omnibox/browser/omnibox_prefs.h"
#include <optional>
#include "base/check.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "components/omnibox/browser/suggestion_group_util.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "third_party/omnibox_proto/groups.pb.h"
namespace omnibox {
namespace {
constexpr UMAGroupId ToUMAGroupId(GroupId group_id) { … }
}
void RegisterProfilePrefs(PrefRegistrySimple* registry) { … }
SuggestionGroupVisibility GetUserPreferenceForSuggestionGroupVisibility(
PrefService* prefs,
int suggestion_group_id) { … }
void SetUserPreferenceForSuggestionGroupVisibility(
PrefService* prefs,
int suggestion_group_id,
SuggestionGroupVisibility visibility) { … }
void SetUserPreferenceForZeroSuggestCachedResponse(
PrefService* prefs,
const std::string& page_url,
const std::string& response) { … }
std::string GetUserPreferenceForZeroSuggestCachedResponse(
PrefService* prefs,
const std::string& page_url) { … }
}