1e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch// Copyright 2014 The Chromium Authors. All rights reserved. 2e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch// Use of this source code is governed by a BSD-style license that can be 3e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch// found in the LICENSE file. 4e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch 5e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdochthis.onactivate = function(event) { 6e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch event.waitUntil(new Promise(function(resolve, reject) { 7e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch setTimeout(reject, 5); 8e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch })); 9e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch}; 10