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

Unified Diff: Source/core/inspector/AsyncCallStackTracker.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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/html/track/vtt/VTTCue.cpp ('k') | Source/core/inspector/CodeGeneratorInspectorStrings.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/AsyncCallStackTracker.cpp
diff --git a/Source/core/inspector/AsyncCallStackTracker.cpp b/Source/core/inspector/AsyncCallStackTracker.cpp
index a8761a9d945f9aceeb343e08ddf7e0da94fdde65..66bf28b6d4ea89c8a62a17b7aff5cc26c4e45bde 100644
--- a/Source/core/inspector/AsyncCallStackTracker.cpp
+++ b/Source/core/inspector/AsyncCallStackTracker.cpp
@@ -102,11 +102,11 @@ public:
{
HashMap<EventTarget*, EventListenerAsyncCallChainVectorHashMap>::iterator it = m_eventTargetCallChains.find(eventTarget);
if (it == m_eventTargetCallChains.end())
- return 0;
+ return nullptr;
EventListenerAsyncCallChainVectorHashMap& map = it->value;
EventListenerAsyncCallChainVectorHashMap::iterator it2 = map.find(eventType);
if (it2 == map.end())
- return 0;
+ return nullptr;
RefPtr<AsyncCallChain> result;
EventListenerAsyncCallChainVector& vector = it2->value;
for (size_t i = 0; i < vector.size(); ++i) {
@@ -216,7 +216,7 @@ void AsyncCallStackTracker::willFireTimer(ExecutionContext* context, int timerId
else
setCurrentAsyncCallChain(data->m_timerCallChains.take(timerId));
} else {
- setCurrentAsyncCallChain(0);
+ setCurrentAsyncCallChain(nullptr);
}
}
@@ -250,7 +250,7 @@ void AsyncCallStackTracker::willFireAnimationFrame(ExecutionContext* context, in
if (ExecutionContextData* data = m_executionContextDataMap.get(context))
setCurrentAsyncCallChain(data->m_animationFrameCallChains.take(callbackId));
else
- setCurrentAsyncCallChain(0);
+ setCurrentAsyncCallChain(nullptr);
}
void AsyncCallStackTracker::didAddEventListener(EventTarget* eventTarget, const AtomicString& eventType, EventListener* listener, bool useCapture, const ScriptValue& callFrames)
@@ -304,7 +304,7 @@ void AsyncCallStackTracker::willHandleEvent(EventTarget* eventTarget, const Atom
if (ExecutionContextData* data = m_executionContextDataMap.get(eventTarget->executionContext()))
setCurrentAsyncCallChain(data->findEventListenerData(eventTarget, eventType, RegisteredEventListener(listener, useCapture)));
else
- setCurrentAsyncCallChain(0);
+ setCurrentAsyncCallChain(nullptr);
}
void AsyncCallStackTracker::willLoadXHR(XMLHttpRequest* xhr, const ScriptValue& callFrames)
@@ -328,7 +328,7 @@ void AsyncCallStackTracker::willHandleXHREvent(XMLHttpRequest* xhr, EventTarget*
else
setCurrentAsyncCallChain(data->m_xhrCallChains.get(xhr));
} else {
- setCurrentAsyncCallChain(0);
+ setCurrentAsyncCallChain(nullptr);
}
}
@@ -366,7 +366,7 @@ void AsyncCallStackTracker::willDeliverMutationRecords(ExecutionContext* context
if (ExecutionContextData* data = m_executionContextDataMap.get(context))
setCurrentAsyncCallChain(data->m_mutationObserverCallChains.take(observer));
else
- setCurrentAsyncCallChain(0);
+ setCurrentAsyncCallChain(nullptr);
}
void AsyncCallStackTracker::didPostPromiseTask(ExecutionContext* context, ExecutionContextTask* task, bool isResolved, const ScriptValue& callFrames)
@@ -390,7 +390,7 @@ void AsyncCallStackTracker::willPerformPromiseTask(ExecutionContext* context, Ex
if (ExecutionContextData* data = m_executionContextDataMap.get(context))
setCurrentAsyncCallChain(data->m_promiseTaskCallChains.take(task));
else
- setCurrentAsyncCallChain(0);
+ setCurrentAsyncCallChain(nullptr);
}
void AsyncCallStackTracker::didFireAsyncCall()
« no previous file with comments | « Source/core/html/track/vtt/VTTCue.cpp ('k') | Source/core/inspector/CodeGeneratorInspectorStrings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698