| OLD | NEW | 
|    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 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  * Simple utilities for making XHRs more pleasant. |    7  * Simple utilities for making XHRs more pleasant. | 
|    8  */ |    8  */ | 
|    9  |    9  | 
|   10 'use strict'; |   10 'use strict'; | 
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  178     throw 'opt_headers must be associative array.'; |  178     throw 'opt_headers must be associative array.'; | 
|  179   } |  179   } | 
|  180  |  180  | 
|  181   if (opt_withCredentials) { |  181   if (opt_withCredentials) { | 
|  182     xhr.withCredentials = true; |  182     xhr.withCredentials = true; | 
|  183   } |  183   } | 
|  184  |  184  | 
|  185   xhr.send(useBody ? parameterString : null); |  185   xhr.send(useBody ? parameterString : null); | 
|  186   return xhr; |  186   return xhr; | 
|  187 }; |  187 }; | 
| OLD | NEW |