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

Unified Diff: chrome/browser/resources/file_manager/js/metadata/function_sequence.js

Issue 12207150: [Cleanup] Files.app: Fix wrong style in JavaScript Code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/file_manager/js/metadata/function_sequence.js
diff --git a/chrome/browser/resources/file_manager/js/metadata/function_sequence.js b/chrome/browser/resources/file_manager/js/metadata/function_sequence.js
index 1541d638f7363f89e77ba252e3acd5c8b7e658e2..f41ef0ef0120f8bef05d46b5934c42fec8731c95 100644
--- a/chrome/browser/resources/file_manager/js/metadata/function_sequence.js
+++ b/chrome/browser/resources/file_manager/js/metadata/function_sequence.js
@@ -53,9 +53,8 @@ FunctionSequence.prototype.setFailureCallback = function(failureCallback) {
* @param err error message
*/
FunctionSequence.prototype.onError_ = function(err) {
- this.logger.vlog('Failed step: ' + this.steps_[this.currentStepIdx_].name
- + ': '
- + err);
+ this.logger.vlog('Failed step: ' + this.steps_[this.currentStepIdx_].name +
+ ': ' + err);
if (!this.failed_) {
this.failed_ = true;
this.failureCallback_(err);
@@ -90,12 +89,12 @@ FunctionSequence.prototype.nextStep_ = function(var_args) {
this.logger.vlog('Sequence ended');
this.callback_.apply(this, arguments);
} else {
- this.logger.vlog('Attempting to start step ['
- + this.steps_[this.currentStepIdx_].name
- + ']');
+ this.logger.vlog('Attempting to start step [' +
+ this.steps_[this.currentStepIdx_].name +
+ ']');
try {
this.steps_[this.currentStepIdx_].apply(this, arguments);
- } catch(e) {
+ } catch (e) {
this.onError(e.toString());
}
}
@@ -109,7 +108,7 @@ FunctionSequence.prototype.start = function(var_args) {
throw new Error('"Start" method of FunctionSequence was called twice');
}
- this.logger.log("Starting sequence with " + arguments.length + " arguments");
+ this.logger.log('Starting sequence with ' + arguments.length + ' arguments');
this.started = true;
this.nextStep.apply(this, arguments);

Powered by Google App Engine
This is Rietveld 408576698