blob: e3b7e9f8702cf61dfd0bf1a0dcd27d62ed923694 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/lacros/lacros_prefs.h"
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_registry_simple.h"
namespace lacros_prefs {
const char kShowedExperimentalBannerPref[] =
"lacros.showed_experimental_banner";
void RegisterLocalStatePrefs(PrefRegistrySimple* registry) {
registry->RegisterBooleanPref(kShowedExperimentalBannerPref,
/*default_value=*/false);
}
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
// Ordinarily, this preference is registered by Ash, but it is used by
// browser settings. It could reasonably move to a browser-specific
// location with suitable #ifdefs.
registry->RegisterBooleanPref(::prefs::kSettingsShowOSBanner, true);
}
} // namespace lacros_prefs