| OLD | NEW |
| 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 var ArrayDataModel = cr.ui.ArrayDataModel; | 8 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 */ | 224 */ |
| 225 onSuccess_: function() { | 225 onSuccess_: function() { |
| 226 this.updateImportInProgress_(false); | 226 this.updateImportInProgress_(false); |
| 227 options.SupervisedUserListData.resetPromise(); | 227 options.SupervisedUserListData.resetPromise(); |
| 228 PageManager.closeAllOverlays(); | 228 PageManager.closeAllOverlays(); |
| 229 }, | 229 }, |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 // Forward public APIs to private implementations. | 232 // Forward public APIs to private implementations. |
| 233 cr.makePublic(SupervisedUserImportOverlay, [ | 233 cr.makePublic(SupervisedUserImportOverlay, [ |
| 234 'onError', |
| 234 'onSuccess', | 235 'onSuccess', |
| 235 ]); | 236 ]); |
| 236 | 237 |
| 237 // Export | 238 // Export |
| 238 return { | 239 return { |
| 239 SupervisedUserImportOverlay: SupervisedUserImportOverlay, | 240 SupervisedUserImportOverlay: SupervisedUserImportOverlay, |
| 240 }; | 241 }; |
| 241 }); | 242 }); |
| OLD | NEW |