Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1184)

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6a150874101f664ad9252b7e1d36b947cedc6ac9..d57b760f51371dfd4e0a91584d5fbdf09d103a7f 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
+++ b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
@@ -26,13 +26,12 @@
* 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 {
@@ -93,7 +92,7 @@ void HRTFDatabaseLoader::loadAsynchronously()
MutexLocker locker(m_lock);
if (!m_hrtfDatabase && !m_thread) {
// Start the asynchronous database loading process.
- m_thread = wrapUnique(Platform::current()->createThread("HRTF database loader"));
+ m_thread = adoptPtr(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)));
}

Powered by Google App Engine
This is Rietveld 408576698