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

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

Issue 986583002: Collect host of Web Component usage to send to RAPPOR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move to Platform to align with other histogram/UMA methods Created 5 years, 9 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: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 3f27bd50248008af9a0301c357a945318d8a4105..885211d7139f47b9689fed158b0c0601fcf561ed 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -216,6 +216,7 @@ void Page::documentDetached(Document* document)
m_contextMenuController->documentDetached(document);
if (m_validationMessageClient)
m_validationMessageClient->documentDetached(*document);
+ m_useByOriginCounter.documentDetached(*document);
}
bool Page::openedByDOM() const
@@ -546,6 +547,7 @@ void Page::didCommitLoad(LocalFrame* frame)
if (m_mainFrame == frame) {
frame->console().clearMessages();
useCounter().didCommitLoad();
+ m_useByOriginCounter.updateMeasurementsAndClear();
UserGestureIndicator::clearProcessedUserGestureSinceLoad();
}
}

Powered by Google App Engine
This is Rietveld 408576698