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

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

Issue 2844453002: Update CM API IDL to use SecureContext (Closed)
Patch Set: Rebase Created 3 years, 7 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
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 Page = cr.ui.pageManager.Page; 6 /** @const */ var Page = cr.ui.pageManager.Page;
7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager;
8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
9 9
10 ///////////////////////////////////////////////////////////////////////////// 10 /////////////////////////////////////////////////////////////////////////////
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 * The most recent search query, or null if the query is empty. 52 * The most recent search query, or null if the query is empty.
53 * @type {?string} 53 * @type {?string}
54 * @private 54 * @private
55 */ 55 */
56 lastQuery_: null, 56 lastQuery_: null,
57 57
58 /** @override */ 58 /** @override */
59 initializePage: function() { 59 initializePage: function() {
60 Page.prototype.initializePage.call(this); 60 Page.prototype.initializePage.call(this);
61 61
62 $('auto-signin-block').hidden =
63 !loadTimeData.getBoolean('enableCredentialManagerAPI');
64
65 $('password-manager-confirm').onclick = function() { 62 $('password-manager-confirm').onclick = function() {
66 PageManager.closeOverlay(); 63 PageManager.closeOverlay();
67 }; 64 };
68 65
69 $('password-manager-import').onclick = function() { 66 $('password-manager-import').onclick = function() {
70 chrome.send('importPassword'); 67 chrome.send('importPassword');
71 }; 68 };
72 69
73 $('password-manager-export').onclick = function() { 70 $('password-manager-export').onclick = function() {
74 chrome.send('exportPassword'); 71 chrome.send('exportPassword');
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 'showImportExportButton', 276 'showImportExportButton',
280 'showPassword', 277 'showPassword',
281 ]); 278 ]);
282 279
283 // Export 280 // Export
284 return { 281 return {
285 PasswordManager: PasswordManager 282 PasswordManager: PasswordManager
286 }; 283 };
287 284
288 }); 285 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698