| 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @class FunctionSequence to invoke steps in sequence | 8 * @class FunctionSequence to invoke steps in sequence |
| 9 * | 9 * |
| 10 * @param {string} name // TODO(JSDOC). | 10 * @param {string} name // TODO(JSDOC). |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 for (var i = 0; i < this.steps_.length; i++) { | 74 for (var i = 0; i < this.steps_.length; i++) { |
| 75 this.logger.vlog('Attempting to start step [' + this.steps_[i].name + ']'); | 75 this.logger.vlog('Attempting to start step [' + this.steps_[i].name + ']'); |
| 76 try { | 76 try { |
| 77 this.steps_[i].apply(this, arguments); | 77 this.steps_[i].apply(this, arguments); |
| 78 } catch (e) { | 78 } catch (e) { |
| 79 this.onError(e.toString()); | 79 this.onError(e.toString()); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 }; | 82 }; |
| OLD | NEW |