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

Issue 365133005: Refactor SetClientID such that metrics rather than crash backs up the client id in Google Update set (Closed)

Created:
6 years, 5 months ago by gab
Modified:
6 years, 5 months ago
CC:
chromium-reviews, grt+watch_chromium.org, Ilya Sherman, asvitkine+watch_chromium.org, Alexei Svitkine (slow)
Project:
chromium
Visibility:
Public.

Description

Refactor SetClientID such that metrics rather than crash backs up the client id in Google Update settings. Consequentially, the backed up client_id now keeps its dashes and crash_keys strips them at runtime rather than when backing it up (https://codereview.chromium.org/372473004/ will add support for stripped client_id backups for some time). Also rename a lot of methods involved in setting the client id; having all of them named "SetClientID" makes this series of calls very hard to follow! BUG=391338 TBR=thestig Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282093

Patch Set 1 #

Patch Set 2 : tweaks #

Patch Set 3 : cleanup #

Total comments: 12

Patch Set 4 : merge up to r281743 #

Total comments: 3

Patch Set 5 : fix compile #

Patch Set 6 : better method names et al. #

Patch Set 7 : fix posix compile? #

Total comments: 8

Patch Set 8 : nits:grt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -62 lines) Patch
M chrome/app/chrome_breakpad_client.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/app/chrome_breakpad_client.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/app/client_util.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/google/google_update_settings_posix.cc View 1 2 3 4 5 6 3 chunks +21 lines, -20 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/common/child_process_logging_win.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/common/crash_keys.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/installer/util/google_update_settings.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/installer/util/google_update_settings.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/breakpad/app/breakpad_client.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M components/breakpad/app/breakpad_client.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/breakpad/app/breakpad_linux.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/breakpad/app/breakpad_mac.mm View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/metrics_service_client.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/metrics/test_metrics_service_client.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/test_metrics_service_client.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
gab
Ilya PTAL at this in the context of https://codereview.chromium.org/372473004/
6 years, 5 months ago (2014-07-07 22:26:42 UTC) #1
Ilya Sherman
https://codereview.chromium.org/365133005/diff/40001/chrome/app/chrome_breakpad_client.cc File chrome/app/chrome_breakpad_client.cc (right): https://codereview.chromium.org/365133005/diff/40001/chrome/app/chrome_breakpad_client.cc#newcode83 chrome/app/chrome_breakpad_client.cc:83: void ChromeBreakpadClient::InitClientID(const std::string& client_id) { nit: Should the variable ...
6 years, 5 months ago (2014-07-08 03:21:38 UTC) #2
grt (UTC plus 2)
cl description nits. i humbly suggest the following which makes the first line more succinct ...
6 years, 5 months ago (2014-07-08 14:18:43 UTC) #3
grt (UTC plus 2)
On 2014/07/08 14:18:43, grt wrote: > Consequentially, the backed up client_id now keeps its dashes ...
6 years, 5 months ago (2014-07-08 14:34:57 UTC) #4
grt (UTC plus 2)
Based on a high-level look at the change, I have some general naming commentary: - ...
6 years, 5 months ago (2014-07-08 14:39:40 UTC) #5
gab
On 2014/07/08 14:34:57, grt wrote: > On 2014/07/08 14:18:43, grt wrote: > > Consequentially, the ...
6 years, 5 months ago (2014-07-08 17:46:02 UTC) #6
grt (UTC plus 2)
On 2014/07/08 17:46:02, gab wrote: > On 2014/07/08 14:34:57, grt wrote: > > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 18:32:58 UTC) #7
gab
On 2014/07/08 18:32:58, grt wrote: > On 2014/07/08 17:46:02, gab wrote: > > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 18:41:32 UTC) #8
gab
Renamed many things as suggested by Ilya/grt. PTAL. Thanks! Gab https://codereview.chromium.org/365133005/diff/40001/chrome/app/chrome_breakpad_client.cc File chrome/app/chrome_breakpad_client.cc (right): https://codereview.chromium.org/365133005/diff/40001/chrome/app/chrome_breakpad_client.cc#newcode83 ...
6 years, 5 months ago (2014-07-08 18:42:23 UTC) #9
Ilya Sherman
Thanks, LGTM other than the fact that it looks like your other precursor CL bled ...
6 years, 5 months ago (2014-07-08 23:41:37 UTC) #10
gab
https://codereview.chromium.org/365133005/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/365133005/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode150 chrome/browser/metrics/chrome_metrics_service_client.cc:150: registry->RegisterInt64Pref(metrics::prefs::kInstallDate, 0); On 2014/07/08 23:41:37, Ilya Sherman wrote: > ...
6 years, 5 months ago (2014-07-08 23:56:44 UTC) #11
Ilya Sherman
https://codereview.chromium.org/365133005/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/365133005/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode150 chrome/browser/metrics/chrome_metrics_service_client.cc:150: registry->RegisterInt64Pref(metrics::prefs::kInstallDate, 0); On 2014/07/08 23:56:44, gab wrote: > On ...
6 years, 5 months ago (2014-07-09 00:00:14 UTC) #12
gab
Thanks, @grt: Please double-check GoogleUpdateSettings @cpu: OWNERS for chrome/app and components/breakpad @rsesek: OWNERS for chrome/common/crash_keys*
6 years, 5 months ago (2014-07-09 00:02:57 UTC) #13
gab
On 2014/07/09 00:02:57, gab wrote: > Thanks, > > @grt: Please double-check GoogleUpdateSettings > @cpu: ...
6 years, 5 months ago (2014-07-09 00:05:16 UTC) #14
Robert Sesek
lgtm
6 years, 5 months ago (2014-07-09 00:47:58 UTC) #15
grt (UTC plus 2)
nice cleanup! lgtm with a few nits. https://codereview.chromium.org/365133005/diff/120001/chrome/browser/google/google_update_settings_posix.cc File chrome/browser/google/google_update_settings_posix.cc (right): https://codereview.chromium.org/365133005/diff/120001/chrome/browser/google/google_update_settings_posix.cc#newcode33 chrome/browser/google/google_update_settings_posix.cc:33: if (!base::DirectoryExists(consent_file.DirName())) ...
6 years, 5 months ago (2014-07-09 12:59:59 UTC) #16
gab
Thanks, done. > @cpu: OWNERS for chrome/app and components/breakpad > @cpu: Please also look at ...
6 years, 5 months ago (2014-07-09 14:42:39 UTC) #17
cpu_(ooo_6.6-7.5)
lgtm
6 years, 5 months ago (2014-07-09 17:56:02 UTC) #18
gab
On 2014/07/09 17:56:02, cpu wrote: > lgtm Thanks, TBR thestig for chrome/common/child_process_logging_win.cc side-effects (as it ...
6 years, 5 months ago (2014-07-09 17:58:16 UTC) #19
gab
The CQ bit was checked by gab@chromium.org
6 years, 5 months ago (2014-07-09 17:58:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/365133005/140001
6 years, 5 months ago (2014-07-09 18:00:27 UTC) #21
Lei Zhang
child_process_logging_win.cc lgtm
6 years, 5 months ago (2014-07-09 18:34:58 UTC) #22
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 18:53:29 UTC) #23
Message was sent while issue was closed.
Change committed as 282093

Powered by Google App Engine
This is Rietveld 408576698