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

Unified Diff: chrome/browser/resources/settings/downloads_page/demo.js

Issue 988783002: Add an initial implementation of the downloads MD settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the missing demo.js I accidentally omitted in previous patch. Created 5 years, 9 months 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/browser/resources/settings/downloads_page/demo.js
diff --git a/chrome/browser/resources/settings/downloads_page/demo.js b/chrome/browser/resources/settings/downloads_page/demo.js
new file mode 100644
index 0000000000000000000000000000000000000000..6f0ce7a5bf847aed73a67f247c965079ccc10e9e
--- /dev/null
+++ b/chrome/browser/resources/settings/downloads_page/demo.js
@@ -0,0 +1,11 @@
+// Copyright 2015 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.
+
+/**
+ * Wire up the prefs to the downloads page.
michaelpg 2015/03/08 05:37:36 optional nit: I'm not sure this really need to be
Kyle Horimoto 2015/03/09 20:16:21 Yep, I don't think this an appropriate JSDoc use c
Oren Blasberg 2015/03/09 21:05:05 Done.
+ */
+window.onload = function() {
michaelpg 2015/03/08 05:37:36 Prefer window.addEventListener('polymer-ready', ..
Oren Blasberg 2015/03/09 21:05:05 Done.
+ var page = document.querySelector('cr-settings-downloads-page');
+ page.prefs = document.querySelector('cr-settings-prefs');
+};

Powered by Google App Engine
This is Rietveld 408576698