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

Unified Diff: chrome/browser/ui/webui/settings/profile_info_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/settings/profile_info_handler.cc
diff --git a/chrome/browser/ui/webui/settings/profile_info_handler.cc b/chrome/browser/ui/webui/settings/profile_info_handler.cc
index 83f2e48f603a3df9f29799f0dc11e7b830e89a7b..175dac328154784dc86f1f3bd3ad485d3d14665c 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
@@ -153,7 +153,7 @@ void ProfileInfoHandler::PushProfileStatsCount(
// the Promise callback approach.
CallJavascriptFunction("cr.webUIListenerCallback",
base::StringValue(kProfileStatsCountReadyEventName),
- base::FundamentalValue(count));
+ base::Value(count));
}
#endif
@@ -165,8 +165,8 @@ void ProfileInfoHandler::HandleGetProfileManagesSupervisedUsers(
const base::Value* callback_id;
CHECK(args->Get(0, &callback_id));
- ResolveJavascriptCallback(
- *callback_id, base::FundamentalValue(IsProfileManagingSupervisedUsers()));
+ ResolveJavascriptCallback(*callback_id,
+ base::Value(IsProfileManagingSupervisedUsers()));
}
void ProfileInfoHandler::PushProfileInfo() {
@@ -179,7 +179,7 @@ void ProfileInfoHandler::PushProfileManagesSupervisedUsersStatus() {
CallJavascriptFunction(
"cr.webUIListenerCallback",
base::StringValue(kProfileManagesSupervisedUsersChangedEventName),
- base::FundamentalValue(IsProfileManagingSupervisedUsers()));
+ base::Value(IsProfileManagingSupervisedUsers()));
}
std::unique_ptr<base::DictionaryValue>

Powered by Google App Engine
This is Rietveld 408576698