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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_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/manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc
index a11a7cb627a0101ef34857cf6cec2dd09e4b6875..9b64e883d9c01be0bd55b0ec7f94c7b3b6990a28 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -489,14 +489,14 @@ void ManageProfileHandler::RequestCreateProfileUpdate(
state == GoogleServiceAuthError::ACCOUNT_DISABLED);
web_ui()->CallJavascriptFunctionUnsafe(
"CreateProfileOverlay.updateSignedInStatus", base::StringValue(username),
- base::FundamentalValue(has_error));
+ base::Value(has_error));
OnCreateSupervisedUserPrefChange();
}
void ManageProfileHandler::OnCreateSupervisedUserPrefChange() {
PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
- base::FundamentalValue allowed(
+ base::Value allowed(
prefs->GetBoolean(prefs::kSupervisedUserCreationAllowed));
web_ui()->CallJavascriptFunctionUnsafe(
"CreateProfileOverlay.updateSupervisedUsersAllowed", allowed);
@@ -505,7 +505,7 @@ void ManageProfileHandler::OnCreateSupervisedUserPrefChange() {
void ManageProfileHandler::OnHasProfileShortcuts(bool has_shortcuts) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- const base::FundamentalValue has_shortcuts_value(has_shortcuts);
+ const base::Value has_shortcuts_value(has_shortcuts);
web_ui()->CallJavascriptFunctionUnsafe(
"ManageProfileOverlay.receiveHasProfileShortcuts", has_shortcuts_value);
}
« no previous file with comments | « chrome/browser/ui/webui/options/import_data_handler.cc ('k') | chrome/browser/ui/webui/options/password_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698