Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2911)

Unified Diff: components/policy/core/browser/autofill_policy_handler.cc

Issue 399433005: Extirpate CreateBooleanValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/boolean/bool Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/nine_patch_layer_impl.cc ('k') | components/policy/core/common/mac_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/layers/nine_patch_layer_impl.cc ('k') | components/policy/core/common/mac_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698