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

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

Issue 1269633005: Code cleanup in core/timing/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/PerformanceUserTiming.cpp
diff --git a/Source/core/timing/PerformanceUserTiming.cpp b/Source/core/timing/PerformanceUserTiming.cpp
index 94121ab0bc87d5577e47c42c2a6e9690b5f44497..351bed266eba3fae16d7156f7c1c76d92909fdfb 100644
--- a/Source/core/timing/PerformanceUserTiming.cpp
+++ b/Source/core/timing/PerformanceUserTiming.cpp
@@ -84,9 +84,9 @@ UserTiming::UserTiming(PerformanceBase* performance)
static void insertPerformanceEntry(PerformanceEntryMap& performanceEntryMap, PerformanceEntry* entry)
{
PerformanceEntryMap::iterator it = performanceEntryMap.find(entry->name());
- if (it != performanceEntryMap.end())
+ if (it != performanceEntryMap.end()) {
it->value.append(entry);
- else {
+ } else {
PerformanceEntryVector vector(1);
vector[0] = entry;
performanceEntryMap.set(entry->name(), vector);
@@ -145,9 +145,9 @@ void UserTiming::measure(const String& measureName, const String& startMark, con
double startTime = 0.0;
double endTime = 0.0;
- if (startMark.isNull())
+ if (startMark.isNull()) {
endTime = m_performance->now();
- else if (endMark.isNull()) {
+ } else if (endMark.isNull()) {
endTime = m_performance->now();
startTime = findExistingMarkStartTime(startMark, exceptionState);
if (exceptionState.hadException())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698