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

Review URL: https://codereview.appspot.com/5877053

git-svn-id: http://rlz.googlecode.com/svn/trunk@109 10bc0f33-e4bf-9a86-80cf-af638054f0c4
17 files changed
tree: 41a19f9578b35330683c9235ee8b8197aaa0bfd4
  1. lib/
  2. mac/
  3. test/
  4. win/
  5. COPYING
  6. DEPS
  7. rlz.gyp