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

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

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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/content_settings_handler.cc
diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
index 337030021aea39818b40cafd80862eb943677cd4..4c6a602fbc7a0c19cd623cdd5b723fbb1c65c19a 100644
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
@@ -781,7 +781,7 @@ void ContentSettingsHandler::UpdateMediaSettingsFromPrefs(
}
void ContentSettingsHandler::UpdateHandlersEnabledRadios() {
- base::FundamentalValue handlers_enabled(
+ base::Value handlers_enabled(
GetProtocolHandlerRegistry()->enabled());
web_ui()->CallJavascriptFunctionUnsafe(
@@ -1356,7 +1356,7 @@ void ContentSettingsHandler::CheckExceptionPatternValidity(
"ContentSettings.patternValidityCheckComplete",
base::StringValue(type_string), base::StringValue(mode_string),
base::StringValue(pattern_string),
- base::FundamentalValue(pattern.IsValid()));
+ base::Value(pattern.IsValid()));
}
Profile* ContentSettingsHandler::GetProfile() {
@@ -1422,7 +1422,7 @@ void ContentSettingsHandler::ShowFlashMediaLink(
base::StringValue(content_type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC
? "mic"
: "camera"),
- base::FundamentalValue(show));
+ base::Value(show));
show_link = show;
}
}
@@ -1480,7 +1480,7 @@ void ContentSettingsHandler::UpdateMediaDeviceDropdownVisibility(
web_ui()->CallJavascriptFunctionUnsafe(
"ContentSettings.setDevicesMenuVisibility",
base::StringValue(site_settings::ContentSettingsTypeToGroupName(type)),
- base::FundamentalValue(!settings.policy_disable));
+ base::Value(!settings.policy_disable));
}
void ContentSettingsHandler::UpdateProtectedContentExceptionsButton() {
@@ -1495,7 +1495,7 @@ void ContentSettingsHandler::UpdateProtectedContentExceptionsButton() {
bool enable_exceptions = prefs->GetBoolean(prefs::kEnableDRM);
web_ui()->CallJavascriptFunctionUnsafe(
"ContentSettings.enableProtectedContentExceptions",
- base::FundamentalValue(enable_exceptions));
+ base::Value(enable_exceptions));
}
} // namespace options
« no previous file with comments | « chrome/browser/ui/webui/options/clear_browser_data_handler.cc ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698