Bug 1485289 - Use BeginWriting() instead of GetMutableData() in LateWriteChecks. r=froydnj

MozReview-Commit-ID: G64L8b6wnO0

Differential Revision: https://phabricator.services.mozilla.com/D3963

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Henri Sivonen 2018-08-28 14:50:11 +00:00
Родитель acc4596637
Коммит 569510fbdc
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -133,8 +133,7 @@ LateWriteObserver::Observe(IOInterposeObserver::Observation& aOb)
nsTAutoString<char_type> nameAux(mProfileDirectory);
nameAux.AppendLiteral(NS_SLASH "Telemetry.LateWriteTmpXXXXXX");
char_type* name;
nameAux.GetMutableData(&name);
char_type* name = nameAux.BeginWriting();
// We want the sha1 of the entire file, so please don't write to fd
// directly; use sha1Stream.