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

Unified Diff: chrome/browser/resources/settings/site_settings/site_settings_category.js

Issue 1826683002: MD Settings: Lazy-load sub-pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WebAnimationsExterns
Patch Set: closure Created 4 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/site_settings/site_settings_category.js
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_category.js b/chrome/browser/resources/settings/site_settings/site_settings_category.js
index 8060099dc44d06e23f3e0a462b3b571211beded1..324ba4d4a7dd8ccaa878143df03806800ac0a58a 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_category.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_category.js
@@ -124,9 +124,10 @@ Polymer({
* @private
*/
onCategoryChanged_: function() {
- this.prefsProxy_.getDefaultValueForContentType(
- this.category).then(function(enabled) {
- this.categoryEnabled = enabled;
- }.bind(this));
+ settings.SiteSettingsPrefsBrowserProxyImpl.getInstance()
+ .getDefaultValueForContentType(
+ this.category).then(function(enabled) {
+ this.categoryEnabled = enabled;
+ }.bind(this));
},
});

Powered by Google App Engine
This is Rietveld 408576698