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

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

Issue 2920253003: kiosk: Tighten cert manager UI (Closed)
Patch Set: rebase, base test is removed :( Created 3 years, 6 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
« no previous file with comments | « chrome/browser/chromeos/policy/proto/chrome_device_policy.proto ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var Page = cr.ui.pageManager.Page; 7 var Page = cr.ui.pageManager.Page;
8 var PageManager = cr.ui.pageManager.PageManager; 8 var PageManager = cr.ui.pageManager.PageManager;
9 9
10 ///////////////////////////////////////////////////////////////////////////// 10 /////////////////////////////////////////////////////////////////////////////
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 initializePage: function() { 195 initializePage: function() {
196 Page.prototype.initializePage.call(this); 196 Page.prototype.initializePage.call(this);
197 197
198 this.personalTab = new CertificateManagerTab('personalCertsTab', 198 this.personalTab = new CertificateManagerTab('personalCertsTab',
199 this.isKiosk_); 199 this.isKiosk_);
200 this.serverTab = new CertificateManagerTab('serverCertsTab', 200 this.serverTab = new CertificateManagerTab('serverCertsTab',
201 this.isKiosk_); 201 this.isKiosk_);
202 this.caTab = new CertificateManagerTab('caCertsTab', this.isKiosk_); 202 this.caTab = new CertificateManagerTab('caCertsTab', this.isKiosk_);
203 this.otherTab = new CertificateManagerTab('otherCertsTab', this.isKiosk_); 203 this.otherTab = new CertificateManagerTab('otherCertsTab', this.isKiosk_);
204 204
205 if (this.isKiosk_) {
206 // No "Servers" and "Authorities" tab in kiosk mode.
207 // See http://crbug.com/719907 for details.
208 $('server-certs-nav-tab').hidden = true;
209 $('ca-certs-nav-tab').hidden = true;
210 }
211
205 this.addEventListener('visibleChange', this.handleVisibleChange_); 212 this.addEventListener('visibleChange', this.handleVisibleChange_);
206 213
207 $('certificate-confirm').onclick = function() { 214 $('certificate-confirm').onclick = function() {
208 PageManager.closeOverlay(); 215 PageManager.closeOverlay();
209 }; 216 };
210 }, 217 },
211 218
212 initalized_: false, 219 initalized_: false,
213 220
214 /** 221 /**
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 $('serverCertsTab-import').disabled = false; 255 $('serverCertsTab-import').disabled = false;
249 $('caCertsTab-import').disabled = false; 256 $('caCertsTab-import').disabled = false;
250 }; 257 };
251 258
252 // Export 259 // Export
253 return { 260 return {
254 CertificateManagerTab: CertificateManagerTab, 261 CertificateManagerTab: CertificateManagerTab,
255 CertificateManager: CertificateManager 262 CertificateManager: CertificateManager
256 }; 263 };
257 }); 264 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/proto/chrome_device_policy.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698