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

Unified Diff: chrome/browser/ui/webui/settings/profile_info_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/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 97830eb81c931fa6556a7b4d727105fc4abc700a..220585d3972fa3af3abe612e74b6ca8526fa1af3 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
@@ -140,11 +140,6 @@ void ProfileInfoHandler::PushProfileStatsCount(
profiles::ProfileCategoryStats stats) {
int count = 0;
for (const auto& item : stats) {
- std::unique_ptr<base::DictionaryValue> stat(new base::DictionaryValue);
- if (!item.success) {
- count = 0;
- break;
- }
count += item.count;
}
// PushProfileStatsCount gets invoked multiple times as each stat becomes

Powered by Google App Engine
This is Rietveld 408576698