| 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 for sending log entries to the server. | 7 * Module for sending log entries to the server. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 remoting.LogToServer.generateSessionId = function() { | 228 remoting.LogToServer.generateSessionId = function() { |
| 229 var idArray = []; | 229 var idArray = []; |
| 230 for (var i = 0; i < remoting.LogToServer.SESSION_ID_LEN_; i++) { | 230 for (var i = 0; i < remoting.LogToServer.SESSION_ID_LEN_; i++) { |
| 231 var index = | 231 var index = |
| 232 Math.random() * remoting.LogToServer.SESSION_ID_ALPHABET_.length; | 232 Math.random() * remoting.LogToServer.SESSION_ID_ALPHABET_.length; |
| 233 idArray.push( | 233 idArray.push( |
| 234 remoting.LogToServer.SESSION_ID_ALPHABET_.slice(index, index + 1)); | 234 remoting.LogToServer.SESSION_ID_ALPHABET_.slice(index, index + 1)); |
| 235 } | 235 } |
| 236 return idArray.join(''); | 236 return idArray.join(''); |
| 237 }; | 237 }; |
| OLD | NEW |