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

Unified Diff: chrome/browser/ui/webui/settings/profile_info_handler.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 175dac328154784dc86f1f3bd3ad485d3d14665c..d6510f5da1955622f2389272da5bc644d2dd9b3f 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
@@ -152,7 +152,7 @@ void ProfileInfoHandler::PushProfileStatsCount(
// available. Therefore, webUIListenerCallback mechanism is used instead of
// the Promise callback approach.
CallJavascriptFunction("cr.webUIListenerCallback",
- base::StringValue(kProfileStatsCountReadyEventName),
+ base::Value(kProfileStatsCountReadyEventName),
base::Value(count));
}
#endif
@@ -171,14 +171,14 @@ void ProfileInfoHandler::HandleGetProfileManagesSupervisedUsers(
void ProfileInfoHandler::PushProfileInfo() {
CallJavascriptFunction("cr.webUIListenerCallback",
- base::StringValue(kProfileInfoChangedEventName),
+ base::Value(kProfileInfoChangedEventName),
*GetAccountNameAndIcon());
}
void ProfileInfoHandler::PushProfileManagesSupervisedUsersStatus() {
CallJavascriptFunction(
"cr.webUIListenerCallback",
- base::StringValue(kProfileManagesSupervisedUsersChangedEventName),
+ base::Value(kProfileManagesSupervisedUsersChangedEventName),
base::Value(IsProfileManagingSupervisedUsers()));
}
« no previous file with comments | « chrome/browser/ui/webui/settings/people_handler.cc ('k') | chrome/browser/ui/webui/settings/protocol_handlers_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698