Chromium Code Reviews| Index: chrome/browser/resources/settings/prefs/prefs.js |
| diff --git a/chrome/browser/resources/settings/prefs/prefs.js b/chrome/browser/resources/settings/prefs/prefs.js |
| index a50dd7f9852e8b54892725b0cae13f7d54a66405..3bdcca631f8b4d80cd948a02f683e9dbe69c603a 100644 |
| --- a/chrome/browser/resources/settings/prefs/prefs.js |
| +++ b/chrome/browser/resources/settings/prefs/prefs.js |
| @@ -34,6 +34,7 @@ Polymer('cr-settings-prefs', { |
| this.settings = {}; |
| this.initializeA11y_(); |
| + this.initializeDownloads_(); |
| var observer = new ObjectObserver(this.settings); |
| observer.open(this.propertyChangeCallback_.bind(this, 'settings')); |
| @@ -76,6 +77,17 @@ Polymer('cr-settings-prefs', { |
| }, |
| /** |
| + * Initializes some defaults for the downloads settings. |
| + * @private |
| + */ |
| + initializeDownloads_: function() { |
| + this.settings.downloads = { |
|
michaelpg
2015/03/08 05:37:36
If we're matching pref_names.cc, this would be "do
Oren Blasberg
2015/03/09 21:05:05
Done.
|
| + downloadLocation: '', |
|
michaelpg
2015/03/08 05:37:36
If we're matching pref_names.cc, this would be def
Oren Blasberg
2015/03/09 21:05:05
Done.
|
| + promptForDownload: false, |
| + }; |
| + }, |
| + |
| + /** |
| * @param {string} propertyPath The path before the property names. |
| * @param {!Array<string>} added An array of keys which were added. |
| * @param {!Array<string>} removed An array of keys which were removed. |