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

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

Issue 2131953002: Site Settings Desktop: Implement protocol handler section. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 5 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_page/site_settings_page.js
diff --git a/chrome/browser/resources/settings/site_settings_page/site_settings_page.js b/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
index a757f08290cc8cbce1c632da11427b37ecb6de6e..f44f0b39468c90428285b454ba57ca9dba33ea38 100644
--- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
+++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
@@ -52,6 +52,8 @@ Polymer({
'#notifications');
this.setDefaultValue_(this.ContentSettingsTypes.PLUGINS, '#plugins');
this.setDefaultValue_(this.ContentSettingsTypes.POPUPS, '#popups');
+ this.setDefaultValue_(this.ContentSettingsTypes.PROTOCOL_HANDLERS,
+ '#handlers');
this.setDefaultValue_(this.ContentSettingsTypes.UNSANDBOXED_PLUGINS,
'#unsandboxedPlugins');
},
@@ -77,6 +79,12 @@ Polymer({
section: 'privacy',
subpage: ['site-settings', 'all-sites'],
};
+ } else if (category == this.ContentSettingsTypes.PROTOCOL_HANDLERS) {
+ this.currentRoute = {
+ page: this.currentRoute.page,
+ section: 'privacy',
+ subpage: ['site-settings', 'protocol-handlers'],
+ };
} else {
this.categorySelected = this.computeCategoryTextId(category);
this.currentRoute = {

Powered by Google App Engine
This is Rietveld 408576698