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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 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
Index: third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp b/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
index 81b6c4fa1a5c10ecf12732586eee59b775cc8151..958d98925164a0cd4c1ebbca0ac7710a34eef4fd 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
@@ -132,11 +132,11 @@ void UserTiming::clearMarks(const String& markName) {
double UserTiming::findExistingMarkStartTime(const String& markName,
ExceptionState& exceptionState) {
if (m_marksMap.contains(markName))
- return m_marksMap.get(markName).back()->startTime();
+ return m_marksMap.at(markName).back()->startTime();
if (restrictedKeyMap().contains(markName) && m_performance->timing()) {
double value = static_cast<double>(
- (m_performance->timing()->*(restrictedKeyMap().get(markName)))());
+ (m_performance->timing()->*(restrictedKeyMap().at(markName)))());
if (!value) {
exceptionState.throwDOMException(
InvalidAccessError, "'" + markName +

Powered by Google App Engine
This is Rietveld 408576698