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

Issue 836703005: Add a new function for getting a deterministic machine ID (Closed)

Created:
5 years, 11 months ago by alito
Modified:
5 years, 10 months ago
Reviewers:
gab, grt (UTC plus 2)
CC:
chromium-reviews, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new function for getting a deterministic machine ID Currently, an RLZ machine-specific ID is used to protect and verify a subset of user preferences. A new function was added that returns the machine SID and can be used instead of the RLZ ID. Currently available only on Windows. BUG=453825 Committed: https://crrev.com/c4f3ce9f101b12a3368355a28c02c8aac21ed432 Cr-Commit-Position: refs/heads/master@{#314058}

Patch Set 1 #

Total comments: 47

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 9

Patch Set 5 : #

Patch Set 6 : Circumvent gcc bug in device_id_unittest.cc #

Patch Set 7 : Trying a different gcc bug circumvention #

Total comments: 3

Patch Set 8 : Added link to bug report in comment and fixed include order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -0 lines) Patch
A chrome/browser/prefs/tracked/device_id.h View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/prefs/tracked/device_id_stub.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/browser/prefs/tracked/device_id_unittest.cc View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/prefs/tracked/device_id_win.cc View 1 2 3 4 5 6 7 1 chunk +71 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 58 (19 generated)
alito
gab: please take a look.
5 years, 11 months ago (2015-01-20 00:42:56 UTC) #2
gab
Great CL, thanks Ali. Digging into this code made me realize however that getting the ...
5 years, 11 months ago (2015-01-20 15:34:13 UTC) #4
alito
Please take another look. https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id.h File chrome/browser/prefs/tracked/device_id.h (right): https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id.h#newcode10 chrome/browser/prefs/tracked/device_id.h:10: bool GetDeterministicMachineSpecificId(std::string* machine_id); On 2015/01/20 ...
5 years, 11 months ago (2015-01-26 16:32:48 UTC) #5
gab
CC grt: see question below regarding nit-picky details of C++/MSVC/wchar_t, thanks! LG, last couple nits. ...
5 years, 11 months ago (2015-01-26 19:40:46 UTC) #6
gab
On 2015/01/26 19:40:46, gab wrote: > CC grt: see question below regarding nit-picky details of ...
5 years, 11 months ago (2015-01-26 19:46:35 UTC) #7
alito
Made changes according to comments by gab@. Also removed "#include <cwchar>" since codesearch showed that ...
5 years, 11 months ago (2015-01-26 21:01:11 UTC) #8
gab
Awesome, lgtm :-)! @grt: Our questions were mostly instructional, we'd love your input but won't ...
5 years, 11 months ago (2015-01-26 21:06:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836703005/40001
5 years, 11 months ago (2015-01-26 21:08:14 UTC) #11
commit-bot: I haz the power
CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true in order for the CQ ...
5 years, 11 months ago (2015-01-26 21:08:18 UTC) #13
chromium-reviews
Hmmm looks like the remote ref is wrong (and that may also be why git ...
5 years, 11 months ago (2015-01-26 21:15:16 UTC) #14
alito
No, I branched from lkgr. So I guess a rebase is in order at this ...
5 years, 11 months ago (2015-01-26 21:19:41 UTC) #15
gab
On 2015/01/26 21:19:41, alito wrote: > No, I branched from lkgr. So I guess a ...
5 years, 11 months ago (2015-01-27 13:42:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836703005/40001
5 years, 11 months ago (2015-01-27 14:08:11 UTC) #18
commit-bot: I haz the power
CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true in order for the CQ ...
5 years, 11 months ago (2015-01-27 14:08:16 UTC) #20
grt (UTC plus 2)
https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id.h File chrome/browser/prefs/tracked/device_id.h (right): https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id.h#newcode11 chrome/browser/prefs/tracked/device_id.h:11: On 2015/01/20 15:34:12, gab wrote: > Now that I ...
5 years, 11 months ago (2015-01-27 17:06:23 UTC) #22
gab
Thanks for your input, see replies below. https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id.h File chrome/browser/prefs/tracked/device_id.h (right): https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id.h#newcode11 chrome/browser/prefs/tracked/device_id.h:11: On 2015/01/27 ...
5 years, 11 months ago (2015-01-27 18:27:41 UTC) #23
grt (UTC plus 2)
https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id_win.cc File chrome/browser/prefs/tracked/device_id_win.cc (right): https://codereview.chromium.org/836703005/diff/1/chrome/browser/prefs/tracked/device_id_win.cc#newcode8 chrome/browser/prefs/tracked/device_id_win.cc:8: #include <cwchar> On 2015/01/27 18:27:40, gab wrote: > On ...
5 years, 11 months ago (2015-01-27 19:48:59 UTC) #24
alito
Changes introduced as per comments/discussions. Also ran "git cl format" which caught a couple of ...
5 years, 11 months ago (2015-01-27 20:56:56 UTC) #25
gab
lgtm, thanks!
5 years, 11 months ago (2015-01-27 21:04:01 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836703005/60001
5 years, 11 months ago (2015-01-27 21:05:25 UTC) #28
grt (UTC plus 2)
lgtm w/ nits below https://codereview.chromium.org/836703005/diff/60001/chrome/browser/prefs/tracked/device_id.h File chrome/browser/prefs/tracked/device_id.h (right): https://codereview.chromium.org/836703005/diff/60001/chrome/browser/prefs/tracked/device_id.h#newcode13 chrome/browser/prefs/tracked/device_id.h:13: NOT_IMPLEMENTED // Returned if the ...
5 years, 11 months ago (2015-01-27 21:08:45 UTC) #29
gab
Alexei, question for you below, thanks! https://codereview.chromium.org/836703005/diff/60001/chrome/browser/prefs/tracked/device_id_unittest.cc File chrome/browser/prefs/tracked/device_id_unittest.cc (right): https://codereview.chromium.org/836703005/diff/60001/chrome/browser/prefs/tracked/device_id_unittest.cc#newcode6 chrome/browser/prefs/tracked/device_id_unittest.cc:6: #include "chrome/browser/prefs/tracked/device_id.h" On ...
5 years, 11 months ago (2015-01-27 21:20:30 UTC) #32
grt (UTC plus 2)
On 2015/01/27 21:20:30, gab wrote: > Alexei, question for you below, thanks! > > https://codereview.chromium.org/836703005/diff/60001/chrome/browser/prefs/tracked/device_id_unittest.cc ...
5 years, 11 months ago (2015-01-27 21:23:20 UTC) #33
gab
On 2015/01/27 21:23:20, grt wrote: > On 2015/01/27 21:20:30, gab wrote: > > Alexei, question ...
5 years, 11 months ago (2015-01-27 21:26:22 UTC) #34
Alexei Svitkine (slow)
https://codereview.chromium.org/836703005/diff/60001/chrome/browser/prefs/tracked/device_id_unittest.cc File chrome/browser/prefs/tracked/device_id_unittest.cc (right): https://codereview.chromium.org/836703005/diff/60001/chrome/browser/prefs/tracked/device_id_unittest.cc#newcode6 chrome/browser/prefs/tracked/device_id_unittest.cc:6: #include "chrome/browser/prefs/tracked/device_id.h" On 2015/01/27 21:20:30, gab wrote: > On ...
5 years, 11 months ago (2015-01-27 22:45:44 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836703005/80001
5 years, 10 months ago (2015-01-28 20:34:30 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/49639)
5 years, 10 months ago (2015-01-28 20:53:27 UTC) #40
alito
I have no idea as to why this test is failing on android. From what ...
5 years, 10 months ago (2015-01-28 22:33:45 UTC) #41
alito
Reviewers please take a look. I tried to circumvent the GCC bug by static_cast:ing the ...
5 years, 10 months ago (2015-01-29 23:25:48 UTC) #43
gab
Wow, even static_cast isn't enough to tell gcc what we want here :-(... well lgtm ...
5 years, 10 months ago (2015-01-30 00:35:12 UTC) #44
grt (UTC plus 2)
https://codereview.chromium.org/836703005/diff/120001/chrome/browser/prefs/tracked/device_id_unittest.cc File chrome/browser/prefs/tracked/device_id_unittest.cc (right): https://codereview.chromium.org/836703005/diff/120001/chrome/browser/prefs/tracked/device_id_unittest.cc#newcode30 chrome/browser/prefs/tracked/device_id_unittest.cc:30: EXPECT_TRUE((kExpectedStatus == MachineIdStatus::SUCCESS) == how about getting rid of ...
5 years, 10 months ago (2015-01-30 14:39:08 UTC) #45
gab
https://codereview.chromium.org/836703005/diff/120001/chrome/browser/prefs/tracked/device_id_unittest.cc File chrome/browser/prefs/tracked/device_id_unittest.cc (right): https://codereview.chromium.org/836703005/diff/120001/chrome/browser/prefs/tracked/device_id_unittest.cc#newcode30 chrome/browser/prefs/tracked/device_id_unittest.cc:30: EXPECT_TRUE((kExpectedStatus == MachineIdStatus::SUCCESS) == On 2015/01/30 14:39:08, grt wrote: ...
5 years, 10 months ago (2015-01-30 17:37:17 UTC) #46
grt (UTC plus 2)
https://codereview.chromium.org/836703005/diff/120001/chrome/browser/prefs/tracked/device_id_unittest.cc File chrome/browser/prefs/tracked/device_id_unittest.cc (right): https://codereview.chromium.org/836703005/diff/120001/chrome/browser/prefs/tracked/device_id_unittest.cc#newcode30 chrome/browser/prefs/tracked/device_id_unittest.cc:30: EXPECT_TRUE((kExpectedStatus == MachineIdStatus::SUCCESS) == On 2015/01/30 17:37:16, gab wrote: ...
5 years, 10 months ago (2015-01-30 17:48:17 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836703005/140001
5 years, 10 months ago (2015-01-31 01:52:41 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gn_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gn_rel/builds/3616)
5 years, 10 months ago (2015-01-31 07:54:24 UTC) #53
gab
On 2015/01/31 07:54:24, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-01-31 15:14:11 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836703005/140001
5 years, 10 months ago (2015-01-31 16:39:03 UTC) #56
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-01-31 16:40:17 UTC) #57
commit-bot: I haz the power
5 years, 10 months ago (2015-01-31 16:41:15 UTC) #58
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c4f3ce9f101b12a3368355a28c02c8aac21ed432
Cr-Commit-Position: refs/heads/master@{#314058}

Powered by Google App Engine
This is Rietveld 408576698