Bug 1429009. P2 - remove unnecessary AbstractThread::AutoEnter. r=bechen,gerald

It is not needed since we are already in the right context.

MozReview-Commit-ID: 6QXxLMQHavv

--HG--
extra : rebase_source : d7a80d3e3d6583bd1732a4048f40576603e83872
extra : source : d700cc52ce2a50a784601f7cff7f63eaff3efced
This commit is contained in:
JW Wang 2018-01-09 17:49:53 +08:00
Родитель 4d6d7238d7
Коммит 9aabe6d2e7
1 изменённых файлов: 0 добавлений и 1 удалений

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

@ -439,7 +439,6 @@ ChannelMediaDecoder::DownloadProgressed()
mCanPlayThrough = aStats.CanPlayThrough();
GetStateMachine()->DispatchCanPlayThrough(mCanPlayThrough);
mResource->ThrottleReadahead(ShouldThrottleDownload(aStats));
AbstractThread::AutoEnter context(AbstractMainThread());
// Update readyState since mCanPlayThrough might have changed.
GetOwner()->UpdateReadyState();
},