OLD | NEW |
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 ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
8 var RepeatingButton = cr.ui.RepeatingButton; | 8 var RepeatingButton = cr.ui.RepeatingButton; |
9 | 9 |
10 // | 10 // |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 /** | 1069 /** |
1070 * Reports a local error (e.g., disk full) to the "create" overlay during | 1070 * Reports a local error (e.g., disk full) to the "create" overlay during |
1071 * profile creation. | 1071 * profile creation. |
1072 * @private | 1072 * @private |
1073 */ | 1073 */ |
1074 showCreateProfileLocalError_: function() { | 1074 showCreateProfileLocalError_: function() { |
1075 CreateProfileOverlay.onLocalError(); | 1075 CreateProfileOverlay.onLocalError(); |
1076 }, | 1076 }, |
1077 | 1077 |
1078 /** | 1078 /** |
1079 * Reports a remote error (e.g., a network error during limited-user | 1079 * Reports a remote error (e.g., a network error during managed-user |
1080 * registration) to the "create" overlay during profile creation. | 1080 * registration) to the "create" overlay during profile creation. |
1081 * @private | 1081 * @private |
1082 */ | 1082 */ |
1083 showCreateProfileRemoteError_: function() { | 1083 showCreateProfileRemoteError_: function() { |
1084 CreateProfileOverlay.onRemoteError(); | 1084 CreateProfileOverlay.onRemoteError(); |
1085 }, | 1085 }, |
1086 | 1086 |
1087 /** | 1087 /** |
1088 * Reports successful profile creation to the "create" overlay. | 1088 * Reports successful profile creation to the "create" overlay. |
1089 * @param {Object} profileInfo An object of the form: | 1089 * @param {Object} profileInfo An object of the form: |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 BrowserOptions.getLoggedInUsername = function() { | 1506 BrowserOptions.getLoggedInUsername = function() { |
1507 return BrowserOptions.getInstance().username_; | 1507 return BrowserOptions.getInstance().username_; |
1508 }; | 1508 }; |
1509 } | 1509 } |
1510 | 1510 |
1511 // Export | 1511 // Export |
1512 return { | 1512 return { |
1513 BrowserOptions: BrowserOptions | 1513 BrowserOptions: BrowserOptions |
1514 }; | 1514 }; |
1515 }); | 1515 }); |
OLD | NEW |