15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file. 45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)this.oninstall = function(event) { 65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) event.waitUntil(new Promise(function(resolve, reject) { 75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) setTimeout(reject, 5); 85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) })); 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}; 10