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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_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/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 541ee483dbf46ffb8434d528ae29285f56ef4e4a..2dbc2697a289aa9a49f29329c452dbd91f9f0efe 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -489,15 +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(
- prefs->GetBoolean(prefs::kSupervisedUserCreationAllowed));
+ base::Value allowed(prefs->GetBoolean(prefs::kSupervisedUserCreationAllowed));
web_ui()->CallJavascriptFunctionUnsafe(
"CreateProfileOverlay.updateSupervisedUsersAllowed", allowed);
}
@@ -505,7 +504,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