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

Unified Diff: chrome/browser/policy/file_selection_dialogs_policy_handler.cc

Issue 399493002: Remove many instances of CreateBooleanValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
Index: chrome/browser/policy/file_selection_dialogs_policy_handler.cc
diff --git a/chrome/browser/policy/file_selection_dialogs_policy_handler.cc b/chrome/browser/policy/file_selection_dialogs_policy_handler.cc
index 69fbc6504c8197962c90400c7ea29afff89d058f..90b9aa319c85a112ee46d031365660cdef10d90c 100644
--- a/chrome/browser/policy/file_selection_dialogs_policy_handler.cc
+++ b/chrome/browser/policy/file_selection_dialogs_policy_handler.cc
@@ -24,13 +24,10 @@ void FileSelectionDialogsPolicyHandler::ApplyPolicySettings(
bool allow_dialogs;
const base::Value* value = policies.GetValue(policy_name());
if (value && value->GetAsBoolean(&allow_dialogs)) {
- prefs->SetValue(prefs::kAllowFileSelectionDialogs,
- base::Value::CreateBooleanValue(allow_dialogs));
+ prefs->SetBoolean(prefs::kAllowFileSelectionDialogs, allow_dialogs);
// Disallow selecting the download location if file dialogs are disabled.
- if (!allow_dialogs) {
- prefs->SetValue(prefs::kPromptForDownload,
- base::Value::CreateBooleanValue(false));
- }
+ if (!allow_dialogs)
+ prefs->SetBoolean(prefs::kPromptForDownload, false);
}
}
« no previous file with comments | « chrome/browser/guest_view/web_view/web_view_permission_helper.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698