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

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

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh 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 4ac5a35cf59706025f4f2c4746c7e226ced00879..59ce83c18e4dac57d8a3bba3ec9b76589079963f 100644
--- a/chrome/browser/resources/settings/prefs/prefs.js
+++ b/chrome/browser/resources/settings/prefs/prefs.js
@@ -84,7 +84,7 @@
if (!root.hasOwnProperty(token)) {
let path = 'prefStore.' + tokens.slice(0, i + 1).join('.');
- this.setPathValue(path, {});
+ this.set(path, {});
}
root = root[token];
}
@@ -93,7 +93,7 @@
// observer fires.
for (let objKey in prefObj) {
let path = 'prefStore.' + prefObj.key + '.' + objKey;
- this.setPathValue(path, prefObj[objKey]);
+ this.set(path, prefObj[objKey]);
}
if (shouldObserve) {

Powered by Google App Engine
This is Rietveld 408576698