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

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: 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
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..927afa0020311cf46c8f94a6b7bfc389d01b582e 100644
--- a/chrome/browser/resources/options/extension_settings.js
+++ b/chrome/browser/resources/options/extension_settings.js
@@ -153,6 +153,23 @@ 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
Finnur 2011/09/19 13:49:56 nit: Space is on the wrong side of the period.
+ // then display Title as Extensions only.
Finnur 2011/09/19 13:49:56 nit: Title should not be capitalized. Actually, t
+ $('extension-settings-header').style.visibility = 'visible';
+ $('dev-toggle').style.visibility = 'visible';
+ var extensionSettingHeader;
+ if(extensionsData.extensions.length > 0) {
Finnur 2011/09/19 13:49:56 style: Space after 'if' (before parentheses).
+ extensionSettingsHeader = templateData.extensionSettingsTitle
+ + " ("
+ + extensionsData.extensions.length
+ + ")";
Finnur 2011/09/19 13:49:56 style: When you need to break long lines into mult
+ }
+ else
Finnur 2011/09/19 13:49:56 style: I believe if the 'if' clause has braces, th
+ extensionSettingsHeader = templateData.extensionSettingsTitle;
+
+ $('extension-settings-header').innerHTML = extensionSettingsHeader;
Finnur 2011/09/19 13:49:56 use innerText, not innerHTML.
naveenbobbili 2011/09/19 14:43:18 Sure. I will take a look at the styling guide line
+
if (extensionsData.extensions.length > 0) {
// Enforce order specified in the data or (if equal) then sort by
// extension name (case-insensitive).

Powered by Google App Engine
This is Rietveld 408576698