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

Unified Diff: chrome/browser/ui/webui/options/core_options_handler.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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/ui/webui/options/core_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/core_options_handler.cc b/chrome/browser/ui/webui/options/core_options_handler.cc
index bd0a291b8f11c56701be8b073e918a5336ce787a..573516474e3f8595d4e7c982837251e267a94019 100644
--- a/chrome/browser/ui/webui/options/core_options_handler.cc
+++ b/chrome/browser/ui/webui/options/core_options_handler.cc
@@ -556,7 +556,7 @@ void CoreOptionsHandler::HandleSetPref(const base::ListValue* args,
return;
}
int int_value = static_cast<int>(double_value);
- temp_value.reset(new base::FundamentalValue(int_value));
+ temp_value.reset(new base::Value(int_value));
value = temp_value.get();
break;
}
@@ -644,15 +644,14 @@ void CoreOptionsHandler::HandleDisableExtension(const base::ListValue* args) {
}
void CoreOptionsHandler::UpdateClearPluginLSOData() {
- base::FundamentalValue enabled(
- plugin_status_pref_setter_.IsClearPluginLSODataEnabled());
+ base::Value enabled(plugin_status_pref_setter_.IsClearPluginLSODataEnabled());
web_ui()->CallJavascriptFunctionUnsafe(
"options.OptionsPage.setClearPluginLSODataEnabled", enabled);
}
void CoreOptionsHandler::UpdatePepperFlashSettingsEnabled() {
- base::FundamentalValue enabled(
- plugin_status_pref_setter_.IsPepperFlashSettingsEnabled());
+ base::Value enabled(
+ plugin_status_pref_setter_.IsPepperFlashSettingsEnabled());
web_ui()->CallJavascriptFunctionUnsafe(
"options.OptionsPage.setPepperFlashSettingsEnabled", enabled);
}
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.cc ('k') | chrome/browser/ui/webui/options/font_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698