зеркало из https://github.com/mozilla/gecko-dev.git
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. |
||
---|---|---|
.. | ||
assert.h | ||
machine_id.h | ||
string_utils.cc | ||
string_utils.h |