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

Issue 813133003: New Profile metric for Auth Errors. (Closed)

Created:
6 years ago by Mike Lerman
Modified:
5 years, 11 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

New Profile metric for Auth Errors. This will capture how many profiles are in an Auth Error state and which auth error the profiles are in. This is comparable with Profile.NumberOfProfiles and Profile.NumberOfSignedInProfiles. BUG=434829 Committed: https://crrev.com/c29285e353a29b8433a8cfb699374729286ae168 Cr-Commit-Position: refs/heads/master@{#310848}

Patch Set 1 #

Patch Set 2 : Clean up test. Add UpdateActive method to TestingProfileManager. #

Patch Set 3 : Don't need method added to ProfileInfoInterface #

Patch Set 4 : Move ProfileCount's AuthErrors from an std::map to an int[] #

Patch Set 5 : Pre-review cleanup #

Total comments: 5

Patch Set 6 : Android and Windows compiler errors #

Total comments: 14

Patch Set 7 : noms nits #

Patch Set 8 : Rogerta comments. profileInfoCache stores only boolean state. log exact AuthError on change. #

Patch Set 9 : Rebase #

Patch Set 10 : Move ProfileInfoCache set from SigninGlobalError to SigninErrorController #

Patch Set 11 : Headers cleanup #

Total comments: 17

Patch Set 12 : noms comments #

Patch Set 13 : Fix unit test; signin_error_controller needs a signin_client #

Patch Set 14 : Rebase #

Patch Set 15 : Rebase: SigninErrorController is now a PKS #

Patch Set 16 : Rework to use SigninErrorController as PKS #

Patch Set 17 : Remove unnecessary forward declaration #

Total comments: 6

Patch Set 18 : noms nits #

Patch Set 19 : ChromeSigninClient handles no ProfileManager for tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -37 lines) Patch
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_metrics.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/signin/signin_global_error_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +71 lines, -29 lines 0 comments Download
M chrome/test/base/testing_profile_manager.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile_manager.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M components/signin/core/browser/signin_error_controller.cc View 1 2 3 4 5 6 7 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M components/signin/core/browser/signin_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M components/signin/core/browser/signin_metrics.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
Mike Lerman
Hi all, Can you please review this CL? Not urgent before the holidays. jcivelli: c/test ...
6 years ago (2014-12-19 16:52:30 UTC) #2
noms (inactive)
Some initial nits. :) https://codereview.chromium.org/813133003/diff/120001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/813133003/diff/120001/chrome/browser/profiles/profile_info_cache.cc#newcode465 chrome/browser/profiles/profile_info_cache.cc:465: else nit: You don't need ...
6 years ago (2014-12-19 19:33:01 UTC) #4
Roger Tawa OOO till Jul 10th
Hi Mike, After offline conversation, I think we can simplify. I don't see a need ...
6 years ago (2014-12-19 19:52:33 UTC) #5
Mike Lerman
https://codereview.chromium.org/813133003/diff/120001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/813133003/diff/120001/chrome/browser/profiles/profile_info_cache.cc#newcode465 chrome/browser/profiles/profile_info_cache.cc:465: else On 2014/12/19 19:33:01, Monica Dinculescu wrote: > nit: ...
6 years ago (2014-12-19 19:53:18 UTC) #6
Mike Lerman
Hi Roger, I've moved everything out of signin_global_error into the signin_error_controller or the chrome_signin_client. https://codereview.chromium.org/813133003/diff/100001/chrome/browser/profiles/profile_metrics.cc ...
5 years, 11 months ago (2015-01-05 20:24:02 UTC) #7
Roger Tawa OOO till Jul 10th
Looks good Mike. See comment below in signin_client.h, sorry for the yak shave request, but ...
5 years, 11 months ago (2015-01-06 22:32:42 UTC) #8
noms (inactive)
https://codereview.chromium.org/813133003/diff/120001/chrome/browser/profiles/profile_metrics.h File chrome/browser/profiles/profile_metrics.h (right): https://codereview.chromium.org/813133003/diff/120001/chrome/browser/profiles/profile_metrics.h#newcode35 chrome/browser/profiles/profile_metrics.h:35: auth_errors() {} On 2014/12/19 19:53:18, Mike Lerman wrote: > ...
5 years, 11 months ago (2015-01-08 21:49:05 UTC) #9
Mike Lerman
Roger, I'm working to move the SigninErrorController into a PKS in another CL. Monica, thanks ...
5 years, 11 months ago (2015-01-09 02:15:05 UTC) #10
Roger Tawa OOO till Jul 10th
lgtm
5 years, 11 months ago (2015-01-09 16:59:39 UTC) #11
Mike Lerman
Thanks, Roger. Monica, further comments? Jesse, Jay, and comments for c/test or histograms? Thanks!
5 years, 11 months ago (2015-01-09 17:49:06 UTC) #12
noms (inactive)
lgtm % nits https://codereview.chromium.org/813133003/diff/340001/chrome/browser/signin/signin_global_error_unittest.cc File chrome/browser/signin/signin_global_error_unittest.cc (right): https://codereview.chromium.org/813133003/diff/340001/chrome/browser/signin/signin_global_error_unittest.cc#newcode53 chrome/browser/signin/signin_global_error_unittest.cc:53: "Person 1", scoped_ptr<PrefServiceSyncable>(), nit: wrong indent ...
5 years, 11 months ago (2015-01-09 17:56:22 UTC) #13
Jay Civelli
LGTM for tests
5 years, 11 months ago (2015-01-09 17:58:21 UTC) #14
Mike Lerman
https://codereview.chromium.org/813133003/diff/340001/chrome/browser/signin/signin_global_error_unittest.cc File chrome/browser/signin/signin_global_error_unittest.cc (right): https://codereview.chromium.org/813133003/diff/340001/chrome/browser/signin/signin_global_error_unittest.cc#newcode53 chrome/browser/signin/signin_global_error_unittest.cc:53: "Person 1", scoped_ptr<PrefServiceSyncable>(), On 2015/01/09 17:56:22, Monica Dinculescu wrote: ...
5 years, 11 months ago (2015-01-09 18:04:11 UTC) #15
jwd
lgtm
5 years, 11 months ago (2015-01-09 19:25:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/813133003/380001
5 years, 11 months ago (2015-01-09 19:47:53 UTC) #18
commit-bot: I haz the power
Committed patchset #19 (id:380001)
5 years, 11 months ago (2015-01-09 20:37:26 UTC) #19
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 20:41:57 UTC) #20
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/c29285e353a29b8433a8cfb699374729286ae168
Cr-Commit-Position: refs/heads/master@{#310848}

Powered by Google App Engine
This is Rietveld 408576698