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

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

Issue 7932021: Displaying the extensions count in extensions settings page. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix for displaying extension count in the title of extension settings page. Created 9 years, 3 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
« no previous file with comments | « chrome/browser/resources/options/extension_settings.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/extension_settings.js
diff --git a/chrome/browser/resources/options/extension_settings.js b/chrome/browser/resources/options/extension_settings.js
index 0beff40f775e64aa99950ada62541adc089fcf71..7867546b8508822450d1dcfbeca2bcb52b2274fe 100644
--- a/chrome/browser/resources/options/extension_settings.js
+++ b/chrome/browser/resources/options/extension_settings.js
@@ -153,6 +153,19 @@ cr.define('options', function() {
$('suggest-gallery').hidden = true;
$('get-more-extensions-container').hidden = true;
+ // Append extension count to extensionSettingsTitle and frame
+ // the extension header string. If there are no extensions loaded
+ // then display title as Extensions only.
+ $('extension-settings-header').hidden = false;
+ $('dev-toggle').hidden = false;
+ var extensionSettingsHeader = templateData.extensionSettingsTitle;
+ if (extensionsData.extensions.length > 0) {
+ extensionSettingsHeader = templateData.extensionSettingsTitle + " (" +
+ extensionsData.extensions.length + ")";
+ }
+
+ $('extension-settings-header').innerText = extensionSettingsHeader;
+
if (extensionsData.extensions.length > 0) {
// Enforce order specified in the data or (if equal) then sort by
// extension name (case-insensitive).
« no previous file with comments | « chrome/browser/resources/options/extension_settings.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698