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

Unified Diff: chrome/browser/ui/webui/help/help_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/help/help_handler.cc
diff --git a/chrome/browser/ui/webui/help/help_handler.cc b/chrome/browser/ui/webui/help/help_handler.cc
index dd0997705df917e6bf4f6f2f7c005a9ebc58a161..cf6b5ca6a7e22b5f5f7e13735d987c5196251314 100644
--- a/chrome/browser/ui/webui/help/help_handler.cc
+++ b/chrome/browser/ui/webui/help/help_handler.cc
@@ -497,7 +497,7 @@ void HelpHandler::OnPageLoaded(const base::ListValue* args) {
web_ui()->CallJavascriptFunctionUnsafe(
"help.HelpPage.updateEnableReleaseChannel",
- base::FundamentalValue(CanChangeChannel(Profile::FromWebUI(web_ui()))));
+ base::Value(CanChangeChannel(Profile::FromWebUI(web_ui()))));
base::Time build_time = base::SysInfo::GetLsbReleaseTime();
base::string16 build_date = base::TimeFormatFriendlyDate(build_time);
@@ -509,16 +509,16 @@ void HelpHandler::OnPageLoaded(const base::ListValue* args) {
web_ui()->CallJavascriptFunctionUnsafe(
"help.HelpPage.setObsoleteSystem",
- base::FundamentalValue(ObsoleteSystem::IsObsoleteNowOrSoon()));
+ base::Value(ObsoleteSystem::IsObsoleteNowOrSoon()));
web_ui()->CallJavascriptFunctionUnsafe(
"help.HelpPage.setObsoleteSystemEndOfTheLine",
- base::FundamentalValue(ObsoleteSystem::IsObsoleteNowOrSoon() &&
+ base::Value(ObsoleteSystem::IsObsoleteNowOrSoon() &&
ObsoleteSystem::IsEndOfTheLine()));
#if defined(OS_CHROMEOS)
web_ui()->CallJavascriptFunctionUnsafe(
"help.HelpPage.updateIsEnterpriseManaged",
- base::FundamentalValue(IsEnterpriseManaged()));
+ base::Value(IsEnterpriseManaged()));
// First argument to GetChannel() is a flag that indicates whether
// current channel should be returned (if true) or target channel
// (otherwise).
@@ -661,7 +661,7 @@ void HelpHandler::SetUpdateStatus(VersionUpdater::Status status,
if (status == VersionUpdater::UPDATING) {
web_ui()->CallJavascriptFunctionUnsafe("help.HelpPage.setProgress",
- base::FundamentalValue(progress));
+ base::Value(progress));
}
#if defined(OS_CHROMEOS)
@@ -675,12 +675,12 @@ void HelpHandler::SetUpdateStatus(VersionUpdater::Status status,
} else {
web_ui()->CallJavascriptFunctionUnsafe(
"help.HelpPage.showAllowedConnectionTypesMsg",
- base::FundamentalValue(false));
+ base::Value(false));
}
} else {
web_ui()->CallJavascriptFunctionUnsafe(
"help.HelpPage.showAllowedConnectionTypesMsg",
- base::FundamentalValue(false));
+ base::Value(false));
}
#endif // defined(OS_CHROMEOS)
}
« no previous file with comments | « chrome/browser/ui/webui/foreign_session_handler.cc ('k') | chrome/browser/ui/webui/history_login_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698