gecko-dev/dom/media/gmp/rlz
Gerald Squelart b5784fbd39 Bug 1214018 - p1: Using vector to pass machine id - r=cpearce
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.
2015-10-29 16:25:00 +01:00
..
base/memory Bug 1214018 - p1: Using vector to pass machine id - r=cpearce 2015-10-29 16:25:00 +01:00
lib Bug 1214018 - p1: Using vector to pass machine id - r=cpearce 2015-10-29 16:25:00 +01:00
win/lib Bug 1214018 - p1: Using vector to pass machine id - r=cpearce 2015-10-29 16:25:00 +01:00
COPYING
moz.build Bug 1204277 - Disallow warnings in six more directories. r=glandium. 2015-09-14 21:16:37 -07:00
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.