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

Issue 2634403002: Use GetDeterministicMachineSpecificId instead of RLZ for device_id (Closed)

Created:
3 years, 11 months ago by proberge
Modified:
3 years, 10 months ago
Reviewers:
gab, jwd
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use GetDeterministicMachineSpecificId instead of RLZ for device_id Propagate rlz_device_id as the legacy_device_id and use the device_id code in components/user_prefs/tracked instead, as it will allow us to support more platforms than the RLZ id does. This change also stops accepting the "previously legacy" device id which was generated by the PrefMetricsService. BUG=500085 Review-Url: https://codereview.chromium.org/2634403002 Cr-Commit-Position: refs/heads/master@{#446092} Committed: https://chromium.googlesource.com/chromium/src/+/e9f69602736a3f71bb6251fdd5f08c90ca210c31

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address review comments #

Total comments: 6

Patch Set 3 : Add some saftey checks and a histogram for the device_id generation #

Total comments: 6

Patch Set 4 : Address review comments on #3 #

Total comments: 4

Patch Set 5 : Address review comments on #4 #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -70 lines) Patch
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager.h View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_calculator.h View 1 1 chunk +7 lines, -4 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_calculator.cc View 1 chunk +3 lines, -18 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_calculator_unittest.cc View 1 3 chunks +24 lines, -30 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_store_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_store_impl.cc View 1 2 3 4 2 chunks +32 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
proberge
3 years, 11 months ago (2017-01-17 15:59:56 UTC) #3
gab
WOOOOOOOT!!! This is awesome:)! The main reason this wasn't done already is that it was ...
3 years, 11 months ago (2017-01-17 21:03:48 UTC) #4
gab
Also, FYI, you'll be able to track this graph to see the migration happening: https://uma.googleplex.com/timeline_v2?sid=a7333760f37123489592ef56930f7226 ...
3 years, 11 months ago (2017-01-17 21:04:35 UTC) #5
proberge
Thanks for the quick review! https://codereview.chromium.org/2634403002/diff/1/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/2634403002/diff/1/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode383 chrome/browser/prefs/chrome_pref_service_factory.cc:383: std::string rlz_device_id; On 2017/01/17 ...
3 years, 11 months ago (2017-01-18 16:10:58 UTC) #6
gab
https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc File components/user_prefs/tracked/pref_hash_calculator.cc (right): https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc#newcode110 components/user_prefs/tracked/pref_hash_calculator.cc:110: return VALID_SECURE_LEGACY; On 2017/01/18 16:10:58, proberge wrote: > On ...
3 years, 11 months ago (2017-01-19 18:52:05 UTC) #7
proberge
https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc File components/user_prefs/tracked/pref_hash_calculator.cc (right): https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc#newcode110 components/user_prefs/tracked/pref_hash_calculator.cc:110: return VALID_SECURE_LEGACY; On 2017/01/19 18:52:05, gab (slow at conference) ...
3 years, 11 months ago (2017-01-19 20:42:59 UTC) #8
proberge
++jwd for histograms.xml
3 years, 10 months ago (2017-01-24 15:59:17 UTC) #10
jwd
histograms LGTM
3 years, 10 months ago (2017-01-24 20:10:47 UTC) #11
gab
https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc File components/user_prefs/tracked/pref_hash_calculator.cc (right): https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc#newcode110 components/user_prefs/tracked/pref_hash_calculator.cc:110: return VALID_SECURE_LEGACY; On 2017/01/19 20:42:59, proberge wrote: > On ...
3 years, 10 months ago (2017-01-24 20:32:05 UTC) #12
proberge
https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc File components/user_prefs/tracked/pref_hash_calculator.cc (right): https://codereview.chromium.org/2634403002/diff/1/components/user_prefs/tracked/pref_hash_calculator.cc#newcode110 components/user_prefs/tracked/pref_hash_calculator.cc:110: return VALID_SECURE_LEGACY; On 2017/01/24 20:32:04, gab wrote: > On ...
3 years, 10 months ago (2017-01-24 20:44:35 UTC) #13
gab
SGTM, lgtm, you'll be able to track this migration in UMA via "Settings.TrackedPreferenceMigratedLegacyDeviceId" on Windows ...
3 years, 10 months ago (2017-01-24 21:07:34 UTC) #14
gab
On 2017/01/24 21:07:34, gab wrote: > SGTM, lgtm, you'll be able to track this migration ...
3 years, 10 months ago (2017-01-24 21:10:31 UTC) #15
proberge
On 2017/01/24 21:10:31, gab wrote: > On 2017/01/24 21:07:34, gab wrote: > > SGTM, lgtm, ...
3 years, 10 months ago (2017-01-24 21:53:39 UTC) #16
gab
On 2017/01/24 21:53:39, proberge wrote: > On 2017/01/24 21:10:31, gab wrote: > > On 2017/01/24 ...
3 years, 10 months ago (2017-01-24 22:02:24 UTC) #17
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/2634403002/100001
3 years, 10 months ago (2017-01-25 18:17:45 UTC) #20
commit-bot: I haz the power
3 years, 10 months ago (2017-01-25 19:43:38 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e9f69602736a3f71bb6251fdd5f0...

Powered by Google App Engine
This is Rietveld 408576698