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

Unified Diff: chrome/browser/resources/settings/prefs/prefs.js

Issue 1131793002: Upgrade checkbox, pref-tracker, and prefs to 0.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@crelements
Patch Set: update settings_resources.grd Created 5 years, 7 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/prefs/prefs.js
diff --git a/chrome/browser/resources/settings/prefs/prefs.js b/chrome/browser/resources/settings/prefs/prefs.js
index f9c5b262951b04eab4ebb373e2e72d97fff130ae..8cc30493e91f29f742b54ebdc4788842843a1d62 100644
--- a/chrome/browser/resources/settings/prefs/prefs.js
+++ b/chrome/browser/resources/settings/prefs/prefs.js
@@ -19,22 +19,23 @@
(function() {
'use strict';
- Polymer('cr-settings-prefs', {
- publish: {
+ Polymer({
+ is: 'cr-settings-prefs',
+
+ properties: {
/**
* Object containing all preferences.
- *
- * @attribute settings
- * @type {Object}
- * @default null
*/
- settings: null,
+ settings: {
+ type: Object,
+ value: function() { return {}; },
+ notify: true,
+ },
},
/** @override */
created: function() {
CrSettingsPrefs.isInitialized = false;
- this.settings = {};
chrome.settingsPrivate.onPrefsChanged.addListener(
this.onPrefsChanged_.bind(this));
« no previous file with comments | « chrome/browser/resources/settings/prefs/prefs.html ('k') | chrome/browser/resources/settings/settings_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698