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

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: 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 e98b5caa82fe3eaafc9f52e633c314602185dc4a..ade8a555ec534b7a61812df48859ba3990b4a216 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_category.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_category.js
@@ -137,9 +137,10 @@ Polymer({
* @private
*/
onCategoryChanged_: function() {
- this.prefsProxy_.getDefaultValueForContentType(
- this.category).then(function(enabled) {
- this.categoryEnabled = enabled;
- }.bind(this));
+ settings.SiteSettingsPrefsBrowserProxyImpl.getInstance()
Dan Beam 2016/03/25 03:21:59 why was this necessary?
michaelpg 2016/03/29 22:04:03 when navigating to site-settings directly, this is
+ .getDefaultValueForContentType(
+ this.category).then(function(enabled) {
+ this.categoryEnabled = enabled;
+ }.bind(this));
},
});

Powered by Google App Engine
This is Rietveld 408576698