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

Unified Diff: third_party/WebKit/Source/core/frame/PerformanceMonitor.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/frame/PerformanceMonitor.cpp
diff --git a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
index 80fa740f1e7e60902a86ddde5fc66a1e5fd76e69..a8990cd56f8e0573455df2abc88bbf4acb951306 100644
--- a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
+++ b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
@@ -187,7 +187,7 @@ void PerformanceMonitor::subscribe(Violation violation,
double threshold,
Client* client) {
DCHECK(violation < kAfterLast);
- ClientThresholds* clientThresholds = m_subscriptions.get(violation);
+ ClientThresholds* clientThresholds = m_subscriptions.at(violation);
if (!clientThresholds) {
clientThresholds = new ClientThresholds();
m_subscriptions.set(violation, clientThresholds);
@@ -328,7 +328,7 @@ void PerformanceMonitor::didProcessTask(scheduler::TaskQueue*,
return;
double layoutThreshold = m_thresholds[kLongLayout];
if (layoutThreshold && m_perTaskStyleAndLayoutTime > layoutThreshold) {
- ClientThresholds* clientThresholds = m_subscriptions.get(kLongLayout);
+ ClientThresholds* clientThresholds = m_subscriptions.at(kLongLayout);
DCHECK(clientThresholds);
for (const auto& it : *clientThresholds) {
if (it.value < m_perTaskStyleAndLayoutTime)
@@ -338,7 +338,7 @@ void PerformanceMonitor::didProcessTask(scheduler::TaskQueue*,
double taskTime = endTime - startTime;
if (m_thresholds[kLongTask] && taskTime > m_thresholds[kLongTask]) {
- ClientThresholds* clientThresholds = m_subscriptions.get(kLongTask);
+ ClientThresholds* clientThresholds = m_subscriptions.at(kLongTask);
for (const auto& it : *clientThresholds) {
if (it.value < taskTime) {
it.key->reportLongTask(
@@ -356,7 +356,7 @@ void PerformanceMonitor::innerReportGenericViolation(
const String& text,
double time,
std::unique_ptr<SourceLocation> location) {
- ClientThresholds* clientThresholds = m_subscriptions.get(violation);
+ ClientThresholds* clientThresholds = m_subscriptions.at(violation);
if (!clientThresholds)
return;
if (!location)

Powered by Google App Engine
This is Rietveld 408576698