blob: cc5ce9d3ed64a3fc4f5fd837a1998eaf8986bd5e [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Polymer({
is: 'app-management-app',
/** @override */
attached: function() {
app_management.BrowserProxy.getInstance().handler.getApps();
let callbackRouter =
app_management.BrowserProxy.getInstance().callbackRouter;
this.listenerIds_ =
[callbackRouter.onAppsAdded.addListener((id) => console.log(id))];
},
detached: function() {
let callbackRouter =
app_management.BrowserProxy.getInstance().callbackRouter;
this.listenerIds_.forEach((id) => callbackRouter.removeListener(id));
},
});