Index: chrome/browser/policy/configuration_policy_pref_store.cc |
diff --git a/chrome/browser/policy/configuration_policy_pref_store.cc b/chrome/browser/policy/configuration_policy_pref_store.cc |
index 7c52f5a6a9dd0260063923a82900eb9d0c0bf1d7..4b78534f10e135fc60292f36f7bbb14506bf9e24 100644 |
--- a/chrome/browser/policy/configuration_policy_pref_store.cc |
+++ b/chrome/browser/policy/configuration_policy_pref_store.cc |
@@ -443,8 +443,7 @@ bool ConfigurationPolicyPrefKeeper::ApplyAutofillPolicy( |
if (policy == kPolicyAutoFillEnabled) { |
bool auto_fill_enabled; |
if (value->GetAsBoolean(&auto_fill_enabled) && !auto_fill_enabled) |
- prefs_.SetValue(prefs::kAutofillEnabled, |
- Value::CreateBooleanValue(false)); |
+ prefs_.SetValue(prefs::kAutofillEnabled, base::FalseValue()); |
delete value; |
return true; |
} |
@@ -467,8 +466,7 @@ bool ConfigurationPolicyPrefKeeper::ApplyDownloadDirPolicy( |
policy::path_parser::ExpandPathVariables(string_value); |
prefs_.SetValue(prefs::kDownloadDefaultDirectory, |
Value::CreateStringValue(expanded_value)); |
- prefs_.SetValue(prefs::kPromptForDownload, |
- Value::CreateBooleanValue(false)); |
+ prefs_.SetValue(prefs::kPromptForDownload, base::FalseValue()); |
#endif // !defined(OS_CHROMEOS) |
delete value; |
return true; |
@@ -509,8 +507,7 @@ bool ConfigurationPolicyPrefKeeper::ApplyFileSelectionDialogsPolicy( |
bool result = value->GetAsBoolean(&allow_file_selection_dialogs); |
DCHECK(result); |
if (!allow_file_selection_dialogs) { |
- prefs_.SetValue(prefs::kPromptForDownload, |
- Value::CreateBooleanValue(false)); |
+ prefs_.SetValue(prefs::kPromptForDownload, base::FalseValue()); |
} |
return true; |
} |
@@ -602,7 +599,7 @@ bool ConfigurationPolicyPrefKeeper::ApplyBookmarksPolicy( |
// kEnableBookmarkBar is managed, kShowBookmarkBar should be false so that |
// the bookmarks bar either is completely disabled or only shows on the NTP. |
// This also disables the checkbox for this preference in the prefs UI. |
- prefs_.SetValue(prefs::kShowBookmarkBar, Value::CreateBooleanValue(false)); |
+ prefs_.SetValue(prefs::kShowBookmarkBar, base::FalseValue()); |
return true; |
} |