| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Module to format IQ messages so they can be displayed in the debug log. | 7 * Module to format IQ messages so they can be displayed in the debug log. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 * of the stanza is returned if there was a parsing error. | 689 * of the stanza is returned if there was a parsing error. |
| 690 */ | 690 */ |
| 691 remoting.FormatIq.prototype.prettifyReceiveIq = function(message) { | 691 remoting.FormatIq.prototype.prettifyReceiveIq = function(message) { |
| 692 var result = this.prettyIq(false, message); | 692 var result = this.prettyIq(false, message); |
| 693 if (!result) { | 693 if (!result) { |
| 694 // Fall back to showing the raw stanza. | 694 // Fall back to showing the raw stanza. |
| 695 return 'Receiving Iq: ' + message; | 695 return 'Receiving Iq: ' + message; |
| 696 } | 696 } |
| 697 return result; | 697 return result; |
| 698 }; | 698 }; |
| OLD | NEW |