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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceEntry.cpp

Issue 2390733003: Make PerformanceEntry::toEntryTypeEnum case sensitive. (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp b/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
index 5115c9fd622aabe1f98a65a3e2de2113e8917ff8..5665ef1c1661d10f61cdc02995455a1a94ebf9ff 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
@@ -65,17 +65,17 @@ double PerformanceEntry::duration() const {
PerformanceEntry::EntryType PerformanceEntry::toEntryTypeEnum(
const String& entryType) {
- if (equalIgnoringCase(entryType, "composite"))
+ if (entryType == "composite")
return Composite;
- if (equalIgnoringCase(entryType, "longtask"))
+ if (entryType == "longtask")
return LongTask;
- if (equalIgnoringCase(entryType, "mark"))
+ if (entryType == "mark")
return Mark;
- if (equalIgnoringCase(entryType, "measure"))
+ if (entryType == "measure")
return Measure;
- if (equalIgnoringCase(entryType, "render"))
+ if (entryType == "render")
return Render;
- if (equalIgnoringCase(entryType, "resource"))
+ if (entryType == "resource")
return Resource;
return Invalid;
}
« 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