| Index: third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
|
| diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
|
| index d57b760f51371dfd4e0a91584d5fbdf09d103a7f..6a150874101f664ad9252b7e1d36b947cedc6ac9 100644
|
| --- a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
|
| +++ b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
|
| @@ -26,12 +26,13 @@
|
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "platform/audio/HRTFDatabaseLoader.h"
|
| #include "platform/TaskSynchronizer.h"
|
| #include "platform/ThreadSafeFunctional.h"
|
| +#include "platform/audio/HRTFDatabaseLoader.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebTaskRunner.h"
|
| #include "public/platform/WebTraceLocation.h"
|
| +#include "wtf/PtrUtil.h"
|
|
|
| namespace blink {
|
|
|
| @@ -92,7 +93,7 @@ void HRTFDatabaseLoader::loadAsynchronously()
|
| MutexLocker locker(m_lock);
|
| if (!m_hrtfDatabase && !m_thread) {
|
| // Start the asynchronous database loading process.
|
| - m_thread = adoptPtr(Platform::current()->createThread("HRTF database loader"));
|
| + m_thread = wrapUnique(Platform::current()->createThread("HRTF database loader"));
|
| // TODO(alexclarke): Should this be posted as a loading task?
|
| m_thread->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&HRTFDatabaseLoader::loadTask, AllowCrossThreadAccess(this)));
|
| }
|
|
|