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

Unified Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc

Issue 2915053002: Replace profile statistics preference count with AutofillCounter (Closed)
Patch Set: change to SetBooleanWithoutPathExpansion Created 3 years, 6 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/signin/user_manager_screen_handler.cc
diff --git a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
index c0e1b8b11fe9f0905ce89ca2140cdecb657371ad..d380183b706f6b7010ac1f64477c546dc6c5614e 100644
--- a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
+++ b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
@@ -632,9 +632,9 @@ void UserManagerScreenHandler::RemoveUserDialogLoadStatsCallback(
// Copy result into return_value.
base::DictionaryValue return_value;
for (const auto& item : result) {
- std::unique_ptr<base::DictionaryValue> stat(new base::DictionaryValue);
+ auto stat = base::MakeUnique<base::DictionaryValue>();
stat->SetIntegerWithoutPathExpansion("count", item.count);
- stat->SetBooleanWithoutPathExpansion("success", item.success);
+ stat->SetBooleanWithoutPathExpansion("success", true);
return_value.SetWithoutPathExpansion(item.category, std::move(stat));
}
if (result.size() == profiles::kProfileStatisticsCategories.size()) {
@@ -802,8 +802,9 @@ void UserManagerScreenHandler::GetLocalizedValues(
l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_PASSWORDS));
localized_strings->SetString("removeUserWarningTextBookmarks",
l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_BOOKMARKS));
- localized_strings->SetString("removeUserWarningTextSettings",
- l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_SETTINGS));
+ localized_strings->SetString(
+ "removeUserWarningTextAutofill",
+ l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_AUTOFILL));
localized_strings->SetString("removeUserWarningTextCalculating",
l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_CALCULATING));
localized_strings->SetString("removeUserWarningTextSyncNoStats",
« no previous file with comments | « chrome/browser/ui/webui/settings/profile_info_handler.cc ('k') | ui/login/account_picker/md_user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698