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

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

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Blink style. 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/events/EventTarget.cpp
diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
index a125d77160ca4b119ff44e2d16172b7f283eb566..3665eaa8615f57d42f07d947f37a3630a8f6dc44 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -305,6 +305,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