Commit 141c98bb authored by Anthony Vallee-Dubois's avatar Anthony Vallee-Dubois Committed by Commit Bot

Properly register the ulp language_profile pref

The pref was gated on being in the Heuristic Model experiment, which
isn't necessarily the case anymore. The pref should always be registered when
the Heuristic Model is chosen.

Bug: 862229
Change-Id: I41fd77334edac643f43c638a6d56abc408242a53
Reviewed-on: https://chromium-review.googlesource.com/1131814Reviewed-by: default avatarMichael Martis <martis@chromium.org>
Commit-Queue: anthonyvd <anthonyvd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#574152}
parent 5fb64779
......@@ -83,7 +83,8 @@ content::BrowserContext* LanguageModelManagerFactory::GetBrowserContextToUse(
void LanguageModelManagerFactory::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* const registry) {
if (base::FeatureList::IsEnabled(language::kUseHeuristicLanguageModel)) {
if (language::GetOverrideLanguageModel() ==
language::OverrideLanguageModel::HEURISTIC) {
registry->RegisterDictionaryPref(
language::prefs::kUserLanguageProfile,
user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment