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

Unified Diff: chrome/browser/resources/options/password_manager.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: other cases 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/password_manager.js
diff --git a/chrome/browser/resources/options/password_manager.js b/chrome/browser/resources/options/password_manager.js
index 9a100908386e61209c2105c22ef91b46c8e7df94..4f04b8444fe9b8c1fc5115cd0d6fb1b268ac3912 100644
--- a/chrome/browser/resources/options/password_manager.js
+++ b/chrome/browser/resources/options/password_manager.js
@@ -50,6 +50,11 @@ cr.define('options', function() {
},
/** @inheritDoc */
+ canShowPage: function() {
+ return !$('manage-passwords').disabled;
stuartmorgan 2011/02/12 01:09:06 As with the other case, use a function that gives
Evan Stade 2011/02/12 03:06:42 Done.
+ },
+
+ /** @inheritDoc */
didShowPage: function() {
// Updating the password lists may cause a blocking platform dialog pop up
// (Mac, Linux), so we delay this operation until the page is shown.

Powered by Google App Engine
This is Rietveld 408576698