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

Side by Side Diff: chrome/browser/resources/options/certificate_backup_overlay.js

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 /** 8 /**
9 * CertificateBackupOverlay class 9 * CertificateBackupOverlay class
10 * Encapsulated handling of the 'enter backup password' overlay page. 10 * Encapsulated handling of the 'enter backup password' overlay page.
11 * @class 11 * @class
12 */ 12 */
13 function CertificateBackupOverlay() { 13 function CertificateBackupOverlay() {
14 OptionsPage.call(this, 'certificateBackupOverlay', 14 OptionsPage.call(this, 'certificateBackupOverlay',
15 '', 15 '',
16 'certificateBackupOverlay'); 16 'certificateBackupOverlay');
17 } 17 }
18 18
19 cr.addSingletonGetter(CertificateBackupOverlay); 19 cr.addSingletonGetter(CertificateBackupOverlay);
20 20
21 CertificateBackupOverlay.prototype = { 21 CertificateBackupOverlay.prototype = {
22 __proto__: OptionsPage.prototype, 22 __proto__: OptionsPage.prototype,
23 23
24 /** 24 /** @override */
25 * Initializes the page.
26 */
27 initializePage: function() { 25 initializePage: function() {
28 OptionsPage.prototype.initializePage.call(this); 26 OptionsPage.prototype.initializePage.call(this);
29 27
30 var self = this; 28 var self = this;
31 $('certificateBackupCancelButton').onclick = function(event) { 29 $('certificateBackupCancelButton').onclick = function(event) {
32 self.cancelBackup_(); 30 self.cancelBackup_();
33 }; 31 };
34 $('certificateBackupOkButton').onclick = function(event) { 32 $('certificateBackupOkButton').onclick = function(event) {
35 self.finishBackup_(); 33 self.finishBackup_();
36 }; 34 };
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 106
109 CertificateBackupOverlay.dismiss = function() { 107 CertificateBackupOverlay.dismiss = function() {
110 CertificateBackupOverlay.getInstance().dismissOverlay_(); 108 CertificateBackupOverlay.getInstance().dismissOverlay_();
111 }; 109 };
112 110
113 // Export 111 // Export
114 return { 112 return {
115 CertificateBackupOverlay: CertificateBackupOverlay 113 CertificateBackupOverlay: CertificateBackupOverlay
116 }; 114 };
117 }); 115 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698