mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
b5784fbd39
GetRawMachineId was returning its generated data through a 'string16', which on Windows was conveniently equivalent to a std::wstring. However on Mac, wstring uses 32-bit characters, so in order to comply with the string16 interface, a lot of non-trivial code would have to be imported and vetted. Also, in the end GMPLoader::Load passes this string16 to SHA256_Update() as a sequence of bytes, the actual type of the data is lost! So to simplify this work, GetRawMachineId will now return its data through a vector of bytes, and the platform-dependent implementations may use whatever data type they want internally. The Windows GetRawMachineId actually returns the same data in this vector, so it stays compatible with the previous code. |
||
---|---|---|
.. | ||
base/memory | ||
lib | ||
win/lib | ||
COPYING | ||
moz.build | ||
README.mozilla |
Code taken from rlz project: https://code.google.com/p/rlz/ Revision: 134, then with unused code stripped out. Note: base/ contains wrappers/dummies to provide implementations of the Chromium APIs that this code relies upon.