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

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

Issue 577843003: Revert of Add public API generation with cr.makePublic() and handle it in compiler pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_3
Patch Set: Created 6 years, 3 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 */ 225 */
226 PasswordManager.removePasswordException = function(rowIndex) { 226 PasswordManager.removePasswordException = function(rowIndex) {
227 chrome.send('removePasswordException', [String(rowIndex)]); 227 chrome.send('removePasswordException', [String(rowIndex)]);
228 }; 228 };
229 229
230 PasswordManager.requestShowPassword = function(index) { 230 PasswordManager.requestShowPassword = function(index) {
231 chrome.send('requestShowPassword', [index]); 231 chrome.send('requestShowPassword', [index]);
232 }; 232 };
233 233
234 // Forward public APIs to private implementations on the singleton instance. 234 // Forward public APIs to private implementations on the singleton instance.
235 cr.makePublic(PasswordManager, [ 235 [
236 'setSavedPasswordsList', 236 'setSavedPasswordsList',
237 'setPasswordExceptionsList', 237 'setPasswordExceptionsList',
238 'showPassword' 238 'showPassword'
239 ]); 239 ].forEach(function(name) {
240 PasswordManager[name] = function() {
241 var instance = PasswordManager.getInstance();
242 return instance[name + '_'].apply(instance, arguments);
243 };
244 });
240 245
241 // Export 246 // Export
242 return { 247 return {
243 PasswordManager: PasswordManager 248 PasswordManager: PasswordManager
244 }; 249 };
245 250
246 }); 251 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/manage_profile_overlay.js ('k') | chrome/browser/resources/options/settings_banner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698