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

Unified Diff: chrome/test/data/banners/main.js

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Rebase. 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: chrome/test/data/banners/main.js
diff --git a/chrome/test/data/banners/main.js b/chrome/test/data/banners/main.js
index c6fb26cfb0e2c3071ab4cf47654bafbb941c8ac3..484e7b44ecf4a84f0ba85e5ada6cf545f625f9e7 100644
--- a/chrome/test/data/banners/main.js
+++ b/chrome/test/data/banners/main.js
@@ -4,6 +4,10 @@
function initialize() {
navigator.serviceWorker.register('service_worker.js');
+
+ window.addEventListener('appinstalled', () => {
+ window.document.title = 'Got appinstalled';
+ });
}
function addManifestLinkTag() {
« no previous file with comments | « chrome/test/data/banners/appinstalled_test_page.html ('k') | content/public/app/mojo/content_renderer_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698