OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "remoting/client/client_status_logger.h" | 5 #include "remoting/client/client_status_logger.h" |
6 | 6 |
| 7 #include "base/logging.h" |
7 #include "base/macros.h" | 8 #include "base/macros.h" |
8 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
9 #include "remoting/client/chromoting_stats.h" | 10 #include "remoting/client/chromoting_stats.h" |
10 #include "remoting/client/server_log_entry_client.h" | 11 #include "remoting/client/server_log_entry_client.h" |
11 | 12 |
12 using remoting::protocol::ConnectionToHost; | 13 using remoting::protocol::ConnectionToHost; |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 const char kSessionIdAlphabet[] = | 17 const char kSessionIdAlphabet[] = |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 GenerateSessionId(); | 132 GenerateSessionId(); |
132 | 133 |
133 // Log the new session ID. | 134 // Log the new session ID. |
134 entry = MakeLogEntryForSessionIdNew(session_id_); | 135 entry = MakeLogEntryForSessionIdNew(session_id_); |
135 entry->AddModeField(log_to_server_.mode()); | 136 entry->AddModeField(log_to_server_.mode()); |
136 log_to_server_.Log(*entry.get()); | 137 log_to_server_.Log(*entry.get()); |
137 } | 138 } |
138 } | 139 } |
139 | 140 |
140 } // namespace remoting | 141 } // namespace remoting |
OLD | NEW |