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

Issue 593243002: Profile_Metrics integration with Keystone (Closed)

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

Description

Profile_Metrics integration with Keystone Chromium side of the implementation of tracking profile stats (number of profiles, number of signed in profiles) through the Omaha channel for Mac. Design doc: https://docs.google.com/a/google.com/document/d/15Ou8VCYNCZvke8Bw9bF3vYqD67voJBPyx_GBR8ONcCw/edit?disco=AAAAAKU7Zzg (Googler Only) BUG=409895 Committed: https://crrev.com/0bcaa8e521eae39a81b4754f8b4ac9de1f0463d5 Cr-Commit-Position: refs/heads/master@{#318729}

Patch Set 1 #

Patch Set 2 : Better error handling #

Total comments: 10

Patch Set 3 : bcwhite comments #

Patch Set 4 : Borisv comments #

Total comments: 19

Patch Set 5 : Rebase #

Patch Set 6 : Comments (mark and others) #

Total comments: 12

Patch Set 7 : Rebase #

Patch Set 8 : Remove separate attribute header; refactor setActive methods. #

Total comments: 8

Patch Set 9 : Rework integer types #

Patch Set 10 : Rebase #

Patch Set 11 : Post-rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : Properly calls keystone code #

Patch Set 15 : Better creation of KSReportingAttributes #

Total comments: 19

Patch Set 16 : Comments from mark@ and grt@. Also, make things compile. #

Patch Set 17 : Small tweak before review #

Total comments: 2

Patch Set 18 : Google Updater handles unsigned values #

Total comments: 2

Patch Set 19 : Comment refined #

Patch Set 20 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -19 lines) Patch
M chrome/browser/mac/keystone_glue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/mac/keystone_glue.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +56 lines, -4 lines 0 comments Download
M chrome/browser/mac/keystone_glue_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/mac/keystone_registration.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/mac/keystone_registration.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +18 lines, -8 lines 0 comments Download
A chrome/browser/profiles/profile_metrics_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/google_update_settings.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/util/google_update_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 45 (7 generated)
Mike Lerman
6 years, 3 months ago (2014-09-23 19:41:07 UTC) #2
Mike Lerman
On 2014/09/23 19:41:07, Mike Lerman wrote: Hi Brian, Can you take a look at this ...
6 years, 3 months ago (2014-09-23 19:41:43 UTC) #3
Mike Lerman
Boris, here's the CL for you to look at.
6 years, 3 months ago (2014-09-23 20:13:08 UTC) #4
bcwhite
https://codereview.chromium.org/593243002/diff/20001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/20001/chrome/browser/mac/keystone_glue.mm#newcode499 chrome/browser/mac/keystone_glue.mm:499: if (numSignedInProfiles_ > 0) { Should this be "numProfiles_"? ...
6 years, 3 months ago (2014-09-23 20:32:59 UTC) #5
Mike Lerman
Hi Boris, I feel like, if any call returns in error, rather than calling setActive, ...
6 years, 2 months ago (2014-09-26 19:52:30 UTC) #7
bcwhite
LGTM https://codereview.chromium.org/593243002/diff/20001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/20001/chrome/browser/mac/keystone_glue.mm#newcode535 chrome/browser/mac/keystone_glue.mm:535: [ksr setActive]; On 2014/09/26 19:52:30, Mike Lerman wrote: ...
6 years, 2 months ago (2014-09-26 20:41:21 UTC) #8
Boris Vidolov
Concern about the check for numProfiles_ to 0 https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm#newcode501 chrome/browser/mac/keystone_glue.mm:501: return; ...
6 years, 2 months ago (2014-09-26 20:57:00 UTC) #9
Mike Lerman
Hi Mark, I'm still getting reviews, but can you take a high level design review ...
6 years, 2 months ago (2014-10-02 15:28:33 UTC) #11
Mark Mentovai
I’d like to see the upstream Keystone change(s) too. https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm#newcode124 chrome/browser/mac/keystone_glue.mm:124: ...
6 years, 2 months ago (2014-10-02 16:07:23 UTC) #12
Mike Lerman
Hi Mark, Here's the Keystone CL: https://critique.corp.google.com/#review/75217474 https://codereview.chromium.org/593243002/diff/20001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/20001/chrome/browser/mac/keystone_glue.mm#newcode535 chrome/browser/mac/keystone_glue.mm:535: [ksr setActive]; ...
6 years, 2 months ago (2014-10-06 16:49:09 UTC) #13
Mark Mentovai
https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm#newcode124 chrome/browser/mac/keystone_glue.mm:124: - (void)setRegistrationActive:(KSRegistration*)ksr; Mike Lerman wrote: > On 2014/10/02 16:07:23, ...
6 years, 2 months ago (2014-10-06 18:35:13 UTC) #14
Boris Vidolov
Suggestion to simplify the Chrome code and push the setting of active in case of ...
6 years, 2 months ago (2014-10-06 20:25:52 UTC) #15
Mark Mentovai
I’d support that.
6 years, 2 months ago (2014-10-06 20:31:19 UTC) #16
Mike Lerman
https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/60001/chrome/browser/mac/keystone_glue.mm#newcode124 chrome/browser/mac/keystone_glue.mm:124: - (void)setRegistrationActive:(KSRegistration*)ksr; On 2014/10/06 18:35:13, Mark Mentovai wrote: > ...
6 years, 2 months ago (2014-10-09 20:41:01 UTC) #17
Mark Mentovai
https://codereview.chromium.org/593243002/diff/100001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/100001/chrome/browser/mac/keystone_glue.mm#newcode512 chrome/browser/mac/keystone_glue.mm:512: LOG(ERROR) << [reportingAttributeError localizedDescription]; Mike Lerman wrote: > On ...
6 years, 2 months ago (2014-10-09 21:26:21 UTC) #18
Mike Lerman
https://codereview.chromium.org/593243002/diff/100001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/100001/chrome/browser/mac/keystone_glue.mm#newcode512 chrome/browser/mac/keystone_glue.mm:512: LOG(ERROR) << [reportingAttributeError localizedDescription]; On 2014/10/09 21:26:20, Mark Mentovai ...
6 years, 2 months ago (2014-10-10 15:32:30 UTC) #20
Boris Vidolov
Publishing some comments. https://codereview.chromium.org/593243002/diff/100001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/593243002/diff/100001/chrome/browser/mac/keystone_glue.mm#newcode501 chrome/browser/mac/keystone_glue.mm:501: return; On 2014/10/09 20:41:01, Mike Lerman ...
6 years, 2 months ago (2014-10-10 22:31:40 UTC) #21
Mike Lerman
Okay. This has been through a few levels of iteration and now actually works!!! The ...
5 years, 10 months ago (2015-02-20 21:28:50 UTC) #23
Mark Mentovai
https://codereview.chromium.org/593243002/diff/430001/chrome/browser/mac/keystone_glue.h File chrome/browser/mac/keystone_glue.h (right): https://codereview.chromium.org/593243002/diff/430001/chrome/browser/mac/keystone_glue.h#newcode180 chrome/browser/mac/keystone_glue.h:180: - (void)updateProfileCountsWithNumProfiles:(uint32_t)numProfiles I don’t think you need “num” in ...
5 years, 10 months ago (2015-02-20 21:54:19 UTC) #24
grt (UTC plus 2)
https://codereview.chromium.org/593243002/diff/430001/chrome/installer/util/google_update_settings.h File chrome/installer/util/google_update_settings.h (right): https://codereview.chromium.org/593243002/diff/430001/chrome/installer/util/google_update_settings.h#newcode221 chrome/installer/util/google_update_settings.h:221: static void UpdateProfileCounts(size_t profiles_active, Why size_t? http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Integer_Types
5 years, 10 months ago (2015-02-21 00:08:47 UTC) #25
Mike Lerman
https://codereview.chromium.org/593243002/diff/430001/chrome/browser/mac/keystone_glue.h File chrome/browser/mac/keystone_glue.h (right): https://codereview.chromium.org/593243002/diff/430001/chrome/browser/mac/keystone_glue.h#newcode180 chrome/browser/mac/keystone_glue.h:180: - (void)updateProfileCountsWithNumProfiles:(uint32_t)numProfiles On 2015/02/20 21:54:18, Mark Mentovai wrote: > ...
5 years, 10 months ago (2015-02-23 16:12:12 UTC) #26
grt (UTC plus 2)
https://codereview.chromium.org/593243002/diff/430001/chrome/installer/util/google_update_settings.h File chrome/installer/util/google_update_settings.h (right): https://codereview.chromium.org/593243002/diff/430001/chrome/installer/util/google_update_settings.h#newcode221 chrome/installer/util/google_update_settings.h:221: static void UpdateProfileCounts(size_t profiles_active, On 2015/02/23 16:12:12, Mike Lerman ...
5 years, 10 months ago (2015-02-23 20:50:01 UTC) #27
Mark Mentovai
I don’t have a preference for signed vs. unsigned, but I do have a preference ...
5 years, 10 months ago (2015-02-23 21:20:36 UTC) #28
Mike Lerman
On 2015/02/23 21:20:36, Mark Mentovai wrote: > I don’t have a preference for signed vs. ...
5 years, 10 months ago (2015-02-24 17:19:54 UTC) #29
grt (UTC plus 2)
Okay, size_t SGTM. Thanks for the background, Mark. https://codereview.chromium.org/593243002/diff/470001/chrome/installer/util/google_update_settings.cc File chrome/installer/util/google_update_settings.cc (right): https://codereview.chromium.org/593243002/diff/470001/chrome/installer/util/google_update_settings.cc#newcode93 chrome/installer/util/google_update_settings.cc:93: return ...
5 years, 10 months ago (2015-02-24 17:57:00 UTC) #30
Boris Vidolov
On 2015/02/24 17:19:54, Mike Lerman wrote: > On 2015/02/23 21:20:36, Mark Mentovai wrote: > > ...
5 years, 10 months ago (2015-02-24 17:59:30 UTC) #31
Mike Lerman
https://codereview.chromium.org/593243002/diff/470001/chrome/installer/util/google_update_settings.cc File chrome/installer/util/google_update_settings.cc (right): https://codereview.chromium.org/593243002/diff/470001/chrome/installer/util/google_update_settings.cc#newcode93 chrome/installer/util/google_update_settings.cc:93: return (key.WriteValue(uniquename.c_str(), value) == ERROR_SUCCESS); On 2015/02/24 17:57:00, grt ...
5 years, 10 months ago (2015-02-25 15:00:12 UTC) #32
grt (UTC plus 2)
chrome/installer/util/* lgtm
5 years, 10 months ago (2015-02-25 15:18:04 UTC) #33
Mike Lerman
Thanks, Greg. Mark, any further comments on this CL?
5 years, 10 months ago (2015-02-25 21:32:40 UTC) #34
Mark Mentovai
LGTM now https://codereview.chromium.org/593243002/diff/490001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/593243002/diff/490001/chrome/browser/profiles/profile_metrics.cc#newcode198 chrome/browser/profiles/profile_metrics.cc:198: // The MACOS implementation of this function ...
5 years, 10 months ago (2015-02-25 21:38:07 UTC) #35
Mike Lerman
Thanks, Mark! I'll wait until you and Boris have the updated Keystone library landed into ...
5 years, 10 months ago (2015-02-25 21:45:56 UTC) #36
Mark Mentovai
If the Keystone that you want is checked in to googlemac/Releases already, why don’t you ...
5 years, 10 months ago (2015-02-25 21:53:44 UTC) #37
Mike Lerman
I've landed the Keystone libraries into src-internal, and verified that my ToT with this patch ...
5 years, 9 months ago (2015-03-02 18:05:32 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593243002/530001
5 years, 9 months ago (2015-03-02 18:06:20 UTC) #41
commit-bot: I haz the power
Committed patchset #20 (id:530001)
5 years, 9 months ago (2015-03-02 18:58:46 UTC) #42
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/0bcaa8e521eae39a81b4754f8b4ac9de1f0463d5 Cr-Commit-Position: refs/heads/master@{#318729}
5 years, 9 months ago (2015-03-02 18:59:31 UTC) #43
Mark Mentovai
I just crashed in this code (either KeystoneRegistration or keystone_glue). http://crbug.com/463781.
5 years, 9 months ago (2015-03-04 05:18:28 UTC) #44
Mike Lerman
5 years, 9 months ago (2015-03-04 21:02:21 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #20 id:530001) has been created in
https://codereview.chromium.org/974423002/ by mlerman@chromium.org.

The reason for reverting is: crbug.com/463900. Mac crashed, like, all the time..

Powered by Google App Engine
This is Rietveld 408576698