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

Unified Diff: Source/platform/WebThreadSupportingGC.cpp

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 2 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
« no previous file with comments | « Source/platform/WebThreadSupportingGC.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/WebThreadSupportingGC.cpp
diff --git a/Source/platform/WebThreadSupportingGC.cpp b/Source/platform/WebThreadSupportingGC.cpp
index b4c3d429d5b7512f94ce3b01f97b78825ec44e2e..e530447a0c75bbaa1e8603ff09ee1d5082a17406 100644
--- a/Source/platform/WebThreadSupportingGC.cpp
+++ b/Source/platform/WebThreadSupportingGC.cpp
@@ -4,6 +4,7 @@
#include "config.h"
#include "platform/WebThreadSupportingGC.h"
+#include "WebThreadOwnPtr.h"
namespace blink {
@@ -13,7 +14,7 @@ PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name
}
WebThreadSupportingGC::WebThreadSupportingGC(const char* name)
- : m_thread(adoptPtr(blink::Platform::current()->createThread(name)))
+ : m_thread(new WebThreadOwnPtr(blink::Platform::current()->createThread(name)))
{
}
@@ -22,7 +23,7 @@ WebThreadSupportingGC::~WebThreadSupportingGC()
if (ThreadState::current()) {
// WebThread's destructor blocks until all the tasks are processed.
ThreadState::SafePointScope scope(ThreadState::HeapPointersOnStack);
- m_thread.clear();
+ m_thread->clear();
}
}
« no previous file with comments | « Source/platform/WebThreadSupportingGC.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698