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

Unified Diff: Source/core/timing/PerformanceTiming.cpp

Issue 663693005: Use C++11 features in core/timing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed review. 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/timing/Performance.cpp ('k') | Source/core/timing/PerformanceUserTiming.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/PerformanceTiming.cpp
diff --git a/Source/core/timing/PerformanceTiming.cpp b/Source/core/timing/PerformanceTiming.cpp
index 917b77d62bb01e0258c4c6f941cffd5873e9393a..617a710210f12c5cd182412d0e4ddfd1a9d3d751 100644
--- a/Source/core/timing/PerformanceTiming.cpp
+++ b/Source/core/timing/PerformanceTiming.cpp
@@ -309,7 +309,7 @@ unsigned long long PerformanceTiming::loadEventEnd() const
DocumentLoader* PerformanceTiming::documentLoader() const
{
if (!m_frame)
- return 0;
+ return nullptr;
return m_frame->loader().documentLoader();
}
@@ -317,11 +317,11 @@ DocumentLoader* PerformanceTiming::documentLoader() const
const DocumentTiming* PerformanceTiming::documentTiming() const
{
if (!m_frame)
- return 0;
+ return nullptr;
Document* document = m_frame->document();
if (!document)
- return 0;
+ return nullptr;
return &document->timing();
}
@@ -330,7 +330,7 @@ DocumentLoadTiming* PerformanceTiming::documentLoadTiming() const
{
DocumentLoader* loader = documentLoader();
if (!loader)
- return 0;
+ return nullptr;
return loader->timing();
}
@@ -339,7 +339,7 @@ ResourceLoadTiming* PerformanceTiming::resourceLoadTiming() const
{
DocumentLoader* loader = documentLoader();
if (!loader)
- return 0;
+ return nullptr;
return loader->response().resourceLoadTiming();
}
« no previous file with comments | « Source/core/timing/Performance.cpp ('k') | Source/core/timing/PerformanceUserTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698