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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2604633002: Mute use counters for internal pages (Closed)
Patch Set: Update a related comment Created 4 years 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/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index 6a9bc39a827411053c876948fab0292e2d60bbff..9f713763304c23a84112dbc3f2e98165803b83f8 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -445,10 +445,14 @@ void Page::updateAcceleratedCompositingSettings() {
void Page::didCommitLoad(LocalFrame* frame) {
if (m_mainFrame == frame) {
+ KURL url;
+ if (frame->document())
+ url = frame->document()->url();
+
// TODO(rbyers): Most of this doesn't appear to take into account that each
// SVGImage gets it's own Page instance.
frameHost().consoleMessageStorage().clear();
- useCounter().didCommitLoad();
+ useCounter().didCommitLoad(url);
deprecation().clearSuppression();
frameHost().visualViewport().sendUMAMetrics();

Powered by Google App Engine
This is Rietveld 408576698