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

Unified Diff: third_party/WebKit/Source/core/layout/ScrollAnchor.cpp

Issue 2354963003: Log SANACLAP suppressions (Closed)
Patch Set: Created 4 years, 3 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ScrollAnchor.cpp
diff --git a/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp b/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp
index a40358178a28a46487fd0e0f9e1834d8db0b9517..71a9e695a5aaa3d6c98e0f30d217d1c8d466e075 100644
--- a/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp
+++ b/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp
@@ -263,6 +263,11 @@ void ScrollAnchor::restore()
// This minimizes redundant calls to findAnchor.
// TODO(skobes): add UMA metric for this.
clear();
+
+ DEFINE_STATIC_LOCAL(EnumerationHistogram, suppressedBySanaclapHistogram,
+ ("Layout.ScrollAnchor.SuppressedBySanaclap", 2));
+ suppressedBySanaclapHistogram.count(1);
+
return;
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698