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

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

Issue 703583002: Fix closure compile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 years, 1 month 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 | « no previous file | 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 /** @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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 break; 207 break;
208 } 208 }
209 } 209 }
210 } 210 }
211 211
212 // Reveal the password in the UI. 212 // Reveal the password in the UI.
213 var item = this.savedPasswordsList_.getListItemByIndex(index); 213 var item = this.savedPasswordsList_.getListItemByIndex(index);
214 item.showPassword(password); 214 item.showPassword(password);
215 }, 215 },
216 216
217 /**
218 * @param {boolean} visible Whether the link should be visible.
219 * @private
220 */
217 setManageAccountLinkVisibility_: function(visible) { 221 setManageAccountLinkVisibility_: function(visible) {
218 $('manage-passwords-span').hidden = !visible; 222 $('manage-passwords-span').hidden = !visible;
219 }, 223 },
220 }; 224 };
221 225
222 /** 226 /**
223 * Removes a saved password. 227 * Removes a saved password.
224 * @param {number} rowIndex indicating the row to remove. 228 * @param {number} rowIndex indicating the row to remove.
225 */ 229 */
226 PasswordManager.removeSavedPassword = function(rowIndex) { 230 PasswordManager.removeSavedPassword = function(rowIndex) {
(...skipping 19 matching lines...) Expand all
246 'setPasswordExceptionsList', 250 'setPasswordExceptionsList',
247 'showPassword' 251 'showPassword'
248 ]); 252 ]);
249 253
250 // Export 254 // Export
251 return { 255 return {
252 PasswordManager: PasswordManager 256 PasswordManager: PasswordManager
253 }; 257 };
254 258
255 }); 259 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698