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

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

Issue 6480039: chrome://settings - Provide method for pages to prevent themselves being shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment update Created 9 years, 10 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/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 123247a5d466a9b012103217d73a02e5053f27c5..47115397856387ddefbb5166725402cc76573786 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -160,11 +160,10 @@ cr.define('options', function() {
/**
* Returns true if the custom startup page control block should
* be enabled.
- * @private
* @returns {boolean} Whether the startup page controls should be
* enabled.
*/
- shouldEnableCustomStartupPageControls_: function(pages) {
+ shouldEnableCustomStartupPageControls: function(pages) {
return $('startupShowPagesButton').checked;
},
@@ -336,7 +335,7 @@ cr.define('options', function() {
* @private
*/
updateCustomStartupPageControlStates_: function() {
- var disable = !this.shouldEnableCustomStartupPageControls_();
+ var disable = !this.shouldEnableCustomStartupPageControls();
$('startupPagesList').disabled = disable;
$('startupUseCurrentButton').disabled = disable;
$('startupAddButton').disabled = disable;

Powered by Google App Engine
This is Rietveld 408576698