Fire an error if a pref used in the UI is missing once all prefs are fetched.
[chromium-blink-merge.git] / chrome / browser / resources / settings / downloads_page / demo.js
blobfda7026ae9ae501b4ac0c21fd8c72f589ba756a3
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Wire up the prefs to the downloads page.
6 window.addEventListener('polymer-ready', function() {
7   var page = document.querySelector('cr-settings-downloads-page');
8   page.prefs = document.querySelector('cr-settings-prefs');
9 });