Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14805)

Issue 5877053: Move GetMachineId() to its own file. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by thakis
Modified:
12 years, 1 month ago
CC:
rlz-codereviews_googlegroups.com
Base URL:
https://rlz.googlecode.com/svn/trunk
Visibility:
Public.

Description

Move GetMachineId() to its own file. The sha1 logic is now shared cross-platform which calls out to a platform-specific function to get system data. GetMachineId() now returns a string instead of a wstring. The SID is still a string16 instead of a wstring, which is the same on windows. (I considered making it a string too, but considered it too risky since if a wide character creeps in somehow it'd change the SHA result.) The platform-specific implementation on mac is still empty. BUG=none TEST=none

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : test #

Patch Set 6 : test passes #

Total comments: 7

Patch Set 7 : rebase #

Patch Set 8 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -239 lines) Patch
M lib/financial_ping.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M lib/financial_ping_test.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -10 lines 0 comments Download
A lib/machine_id.h View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A lib/machine_id.cc View 1 2 3 4 5 6 7 1 chunk +80 lines, -0 lines 0 comments Download
A lib/machine_id_unittest.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
M lib/string_utils.h View 2 chunks +2 lines, -2 lines 0 comments Download
M lib/string_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M lib/string_utils_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A mac/lib/machine_id_mac.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M rlz.gyp View 1 2 3 4 5 6 4 chunks +5 lines, -0 lines 0 comments Download
M win/lib/machine_deal.h View 1 chunk +0 lines, -9 lines 0 comments Download
M win/lib/machine_deal.cc View 1 2 3 2 chunks +0 lines, -168 lines 0 comments Download
M win/lib/machine_deal_test.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -9 lines 0 comments Download
A win/lib/machine_id_win.cc View 1 2 3 6 7 1 chunk +130 lines, -0 lines 0 comments Download
M win/lib/rlz_lib.h View 1 chunk +0 lines, -13 lines 0 comments Download
M win/lib/rlz_lib.cc View 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 4
thakis
Many files touched, but most files have just 1-4 lines changed. The windows code was ...
12 years, 1 month ago (2012-03-22 20:37:00 UTC) #1
Roger Tawa (Google)
Hi Nico, A few questions below. Is *very* important that the machine id not change. ...
12 years, 1 month ago (2012-03-22 21:23:53 UTC) #2
thakis
Thanks! https://codereview.appspot.com/5877053/diff/3036/lib/machine_id.cc File lib/machine_id.cc (right): https://codereview.appspot.com/5877053/diff/3036/lib/machine_id.cc#newcode76 lib/machine_id.cc:76: } On 2012/03/22 21:23:53, rogerta wrote: > functions ...
12 years, 1 month ago (2012-03-22 21:33:00 UTC) #3
Roger Tawa (Google)
12 years, 1 month ago (2012-03-22 22:22:44 UTC) #4
lgtm

Thanks Nico.  Don't forget to let me know the first build that has these
changes.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b