| Index: components/policy/core/browser/autofill_policy_handler.cc
|
| diff --git a/components/policy/core/browser/autofill_policy_handler.cc b/components/policy/core/browser/autofill_policy_handler.cc
|
| index 683c78a5bef4bf0283d2247bd07ad765fd42820f..f70fe4083953fee57ba27583715851086b9a9dc5 100644
|
| --- a/components/policy/core/browser/autofill_policy_handler.cc
|
| +++ b/components/policy/core/browser/autofill_policy_handler.cc
|
| @@ -23,10 +23,8 @@ void AutofillPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
|
| PrefValueMap* prefs) {
|
| const base::Value* value = policies.GetValue(policy_name());
|
| bool auto_fill_enabled;
|
| - if (value && value->GetAsBoolean(&auto_fill_enabled) && !auto_fill_enabled) {
|
| - prefs->SetValue(autofill::prefs::kAutofillEnabled,
|
| - base::Value::CreateBooleanValue(false));
|
| - }
|
| + if (value && value->GetAsBoolean(&auto_fill_enabled) && !auto_fill_enabled)
|
| + prefs->SetBoolean(autofill::prefs::kAutofillEnabled, false);
|
| }
|
|
|
| } // namespace policy
|
|
|