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

Unified Diff: chrome/browser/resources/options/font_settings.js

Issue 33753004: Add link to the Advanced Font Settings extension in Font Settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 7 years, 2 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/options/font_settings.js
diff --git a/chrome/browser/resources/options/font_settings.js b/chrome/browser/resources/options/font_settings.js
index 965df6ef49566a35de1148e417b97922283bbfbe..0b3f3f70a9ba731bfc72f755291d81a760911988 100644
--- a/chrome/browser/resources/options/font_settings.js
+++ b/chrome/browser/resources/options/font_settings.js
@@ -57,6 +57,10 @@ cr.define('options', function() {
$('font-settings-confirm').onclick = function() {
OptionsPage.closeOverlay();
};
+
+ $('advanced-font-settings-options').onclick = function() {
+ chrome.send('openAdvancedFontSettingsOptions');
+ };
},
/**
@@ -234,6 +238,15 @@ cr.define('options', function() {
null, true);
};
+ /**
+ * @param {boolean} available Whether the Advanced Font Settings Extension
+ * is installed and enabled.
+ */
+ FontSettings.notifyAdvancedFontSettingsAvailability = function(available) {
+ $('advanced-font-settings-install').hidden = available;
+ $('advanced-font-settings-options').hidden = !available;
+ };
+
// Export
return {
FontSettings: FontSettings
« no previous file with comments | « chrome/browser/resources/options/font_settings.html ('k') | chrome/browser/ui/webui/options/font_settings_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698