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

Unified Diff: third_party/WebKit/Source/core/events/EventTarget.cpp

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Minor refactor. Created 4 years, 2 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/events/EventTarget.cpp
diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
index bec81263ddf910d7cedf02f6f9cef151f16c805d..472c861867b250650baba69aa3f475950fd10cb5 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -316,6 +316,11 @@ void EventTarget::addedEventListener(
UseCounter::count(executingWindow->document(),
UseCounter::AuxclickAddListenerCount);
}
+ } else if (eventType == EventTypeNames::appinstalled) {
+ if (LocalDOMWindow* executingWindow = this->executingWindow()) {
+ UseCounter::count(executingWindow->document(),
+ UseCounter::AppInstalledEventAddListener);
+ }
} else if (EventUtil::isPointerEventType(eventType)) {
if (LocalDOMWindow* executingWindow = this->executingWindow()) {
UseCounter::count(executingWindow->document(),

Powered by Google App Engine
This is Rietveld 408576698