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

Unified Diff: chrome/browser/resources/options2/content_settings.js

Issue 10808092: Add settings UI for managing defaults (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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/options2/content_settings.js
diff --git a/chrome/browser/resources/options2/content_settings.js b/chrome/browser/resources/options2/content_settings.js
index fd45acafb5f87034a75e14a9baa5e2c7bf9c24e5..204e8b4e0b857a056823068a7264ab4ce064e84b 100644
--- a/chrome/browser/resources/options2/content_settings.js
+++ b/chrome/browser/resources/options2/content_settings.js
@@ -80,6 +80,13 @@ cr.define('options', function() {
if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection)
intentsSection.parentNode.removeChild(intentsSection);
+ var webIntentsOptionsButton = $('manage-web-intents-defaults-button');
+ if (webIntentsOptionsButton) {
+ webIntentsOptionsButton.onclick = function(event) {
+ OptionsPage.navigateToPage('web-intents-defaults');
+ };
+ }
+
$('content-settings-overlay-confirm').onclick =
OptionsPage.closeOverlay.bind(OptionsPage);

Powered by Google App Engine
This is Rietveld 408576698