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

Side by Side Diff: chrome/browser/resources/options/supervised_user_create_confirm.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * SupervisedUserCreateConfirm class. 10 * SupervisedUserCreateConfirm class.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 MAX_LENGTH))); 81 MAX_LENGTH)));
82 }, 82 },
83 83
84 /** @override */ 84 /** @override */
85 canShowPage: function() { 85 canShowPage: function() {
86 return this.profileInfo_ != null; 86 return this.profileInfo_ != null;
87 }, 87 },
88 }; 88 };
89 89
90 // Forward public APIs to private implementations. 90 // Forward public APIs to private implementations.
91 cr.makePublic(SupervisedUserCreateConfirmOverlay, [ 91 [
92 'setProfileInfo', 92 'setProfileInfo',
93 ]); 93 ].forEach(function(name) {
94 SupervisedUserCreateConfirmOverlay[name] = function() {
95 var instance = SupervisedUserCreateConfirmOverlay.getInstance();
96 return instance[name + '_'].apply(instance, arguments);
97 };
98 });
94 99
95 // Export 100 // Export
96 return { 101 return {
97 SupervisedUserCreateConfirmOverlay: SupervisedUserCreateConfirmOverlay, 102 SupervisedUserCreateConfirmOverlay: SupervisedUserCreateConfirmOverlay,
98 }; 103 };
99 }); 104 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/startup_overlay.js ('k') | chrome/browser/resources/options/supervised_user_import.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698