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

Issue 2915053002: Replace profile statistics preference count with AutofillCounter (Closed)

Created:
3 years, 6 months ago by dullweber
Modified:
3 years, 6 months ago
Reviewers:
xiyuan, michaelpg, msarda
CC:
chromium-reviews, alemate+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, dbeam+watch-settings_chromium.org, srahim+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace profile statistics preference count with AutofillCounter The preference count is not very meaningful because it counts the number of non-default pref values. Even for a new profile, this will be greater than 0 because many preferences are used for things different than settings. This CL will replace this number with the existing AutofillCounter. The number of autofill forms provides more meaningful information about valuable data that will be lost when a profile is deleted. Remove ProfileStatisticsAggregator refcounting because all counters can be deleted at any time. Remove ProfileCategoryStat.success because the counters can't fail anymore. Change 'Browsing History' to 'Browsing history' for consistency with 'Autofill form data' and other Clear Browsing Data strings. BUG=716267 Review-Url: https://codereview.chromium.org/2915053002 Cr-Commit-Position: refs/heads/master@{#479336} Committed: https://chromium.googlesource.com/chromium/src/+/17645964f33b591deea14589845132be05e8ad9f

Patch Set 1 #

Patch Set 2 : create webdataservice for testing #

Patch Set 3 : cleanup #

Total comments: 1

Patch Set 4 : Change 'Browsing History' to 'Browsing history' #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : change to SetBooleanWithoutPathExpansion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -163 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_statistics.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_statistics.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/profiles/profile_statistics_aggregator.h View 1 2 3 chunks +8 lines, -38 lines 0 comments Download
M chrome/browser/profiles/profile_statistics_aggregator.cc View 1 2 6 chunks +18 lines, -69 lines 0 comments Download
M chrome/browser/profiles/profile_statistics_browsertest.cc View 6 chunks +4 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile_statistics_common.h View 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_statistics_common.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_statistics_unittest.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/profile_info_handler.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M ui/login/account_picker/md_user_pod_row.js View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/login/account_picker/md_user_pod_template.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/login/account_picker/user_pod_template.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (26 generated)
dullweber
Hi Mihai, as a last step I'm replacing the preference count with an autofill counter.
3 years, 6 months ago (2017-06-02 09:43:46 UTC) #11
msarda
LGTM with a suggestion. https://codereview.chromium.org/2915053002/diff/60001/chrome/browser/profiles/profile_statistics_common.cc File chrome/browser/profiles/profile_statistics_common.cc (right): https://codereview.chromium.org/2915053002/diff/60001/chrome/browser/profiles/profile_statistics_common.cc#newcode11 chrome/browser/profiles/profile_statistics_common.cc:11: const char kProfileStatisticsAutofill[] = "Autofill"; ...
3 years, 6 months ago (2017-06-05 11:46:03 UTC) #13
dullweber
On 2017/06/05 11:46:03, msarda wrote: > LGTM with a suggestion. > > https://codereview.chromium.org/2915053002/diff/60001/chrome/browser/profiles/profile_statistics_common.cc > File ...
3 years, 6 months ago (2017-06-06 09:44:00 UTC) #17
dullweber
michaelpg@chromium.org: Please review changes in chrome/browser/ui/webui/ xiyuan@chromium.org: Please review changes in ui/login/account_picker/
3 years, 6 months ago (2017-06-07 12:19:58 UTC) #21
xiyuan
ui/login/account_picker/ lgtm
3 years, 6 months ago (2017-06-07 15:11:34 UTC) #22
michaelpg
https://codereview.chromium.org/2915053002/diff/80001/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc File chrome/browser/ui/webui/signin/user_manager_screen_handler.cc (right): https://codereview.chromium.org/2915053002/diff/80001/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc#newcode640 chrome/browser/ui/webui/signin/user_manager_screen_handler.cc:640: stat->SetIntegerWithoutPathExpansion("success", true); should this be removed as well? if ...
3 years, 6 months ago (2017-06-07 18:25:54 UTC) #23
dullweber
https://codereview.chromium.org/2915053002/diff/80001/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc File chrome/browser/ui/webui/signin/user_manager_screen_handler.cc (right): https://codereview.chromium.org/2915053002/diff/80001/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc#newcode640 chrome/browser/ui/webui/signin/user_manager_screen_handler.cc:640: stat->SetIntegerWithoutPathExpansion("success", true); On 2017/06/07 18:25:54, michaelpg wrote: > should ...
3 years, 6 months ago (2017-06-08 10:55:55 UTC) #27
michaelpg
webui lgtm
3 years, 6 months ago (2017-06-08 21:11:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2915053002/140001
3 years, 6 months ago (2017-06-14 07:49:22 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 09:30:42 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/17645964f33b591deea145898451...

Powered by Google App Engine
This is Rietveld 408576698