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

Side by Side Diff: remoting/client/client_telemetry_logger.cc

Issue 1972793002: TelemetryLogWriter cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_telemetry_logger.h" 5 #include "remoting/client/client_telemetry_logger.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/rand_util.h" 8 #include "base/rand_util.h"
9 #include "remoting/signaling/telemetry_log_writer.h" 9 #include "remoting/base/telemetry_log_writer.h"
10 10
11 namespace { 11 namespace {
12 12
13 const char kSessionIdAlphabet[] = 13 const char kSessionIdAlphabet[] =
14 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; 14 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
15 const int kSessionIdLength = 20; 15 const int kSessionIdLength = 20;
16 16
17 const int kMaxSessionIdAgeDays = 1; 17 const int kMaxSessionIdAgeDays = 1;
18 18
19 } // namespace 19 } // namespace
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 return event; 237 return event;
238 } 238 }
239 239
240 ChromotingEvent ClientTelemetryLogger::MakeSessionIdNewEvent() { 240 ChromotingEvent ClientTelemetryLogger::MakeSessionIdNewEvent() {
241 ChromotingEvent event(ChromotingEvent::Type::SESSION_ID_NEW); 241 ChromotingEvent event(ChromotingEvent::Type::SESSION_ID_NEW);
242 FillEventContext(&event); 242 FillEventContext(&event);
243 return event; 243 return event;
244 } 244 }
245 245
246 } // namespace remoting 246 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/client_telemetry_logger.h ('k') | remoting/client/client_telemetry_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698