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

Unified Diff: Source/core/workers/WorkerInspectorProxy.cpp

Issue 644663004: Use C++11 features in core/workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/core/workers/WorkerGlobalScope.cpp ('k') | Source/core/workers/WorkerMessagingProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerInspectorProxy.cpp
diff --git a/Source/core/workers/WorkerInspectorProxy.cpp b/Source/core/workers/WorkerInspectorProxy.cpp
index e903ec6a481f558a6bed55ad48cdd73b26eb425c..3f3b502971af8ef703bc6e8027b32c7654b4ee84 100644
--- a/Source/core/workers/WorkerInspectorProxy.cpp
+++ b/Source/core/workers/WorkerInspectorProxy.cpp
@@ -17,9 +17,9 @@
namespace blink {
WorkerInspectorProxy::WorkerInspectorProxy()
- : m_workerThread(0)
- , m_executionContext(0)
- , m_pageInspector(0)
+ : m_workerThread(nullptr)
+ , m_executionContext(nullptr)
+ , m_pageInspector(nullptr)
{
}
@@ -43,8 +43,8 @@ void WorkerInspectorProxy::workerThreadTerminated()
{
if (m_workerThread)
InspectorInstrumentation::workerTerminated(m_executionContext, this);
- m_workerThread = 0;
- m_pageInspector = 0;
+ m_workerThread = nullptr;
+ m_pageInspector = nullptr;
}
static void connectToWorkerGlobalScopeInspectorTask(ExecutionContext* context, bool)
@@ -68,7 +68,7 @@ static void disconnectFromWorkerGlobalScopeInspectorTask(ExecutionContext* conte
void WorkerInspectorProxy::disconnectFromInspector()
{
- m_pageInspector = 0;
+ m_pageInspector = nullptr;
if (!m_workerThread)
return;
m_workerThread->postDebuggerTask(createCrossThreadTask(disconnectFromWorkerGlobalScopeInspectorTask, true));
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.cpp ('k') | Source/core/workers/WorkerMessagingProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698