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

Unified Diff: remoting/base/chromoting_event.cc

Issue 1972793002: TelemetryLogWriter cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: client_telemetry_logger_unittest: remove unused includes 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 side-by-side diff with in-line comments
Download patch
Index: remoting/base/chromoting_event.cc
diff --git a/remoting/signaling/chromoting_event.cc b/remoting/base/chromoting_event.cc
similarity index 93%
rename from remoting/signaling/chromoting_event.cc
rename to remoting/base/chromoting_event.cc
index bfaef25ce5d20da1b91859aafb224bbb77351631..e7a02eb810ad0a7490e10ab96be9776118973737 100644
--- a/remoting/signaling/chromoting_event.cc
+++ b/remoting/base/chromoting_event.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/signaling/chromoting_event.h"
+#include "remoting/base/chromoting_event.h"
#include "base/sys_info.h"
@@ -37,12 +37,12 @@ ChromotingEvent::ChromotingEvent(Type type) : ChromotingEvent() {
}
ChromotingEvent::ChromotingEvent(const ChromotingEvent& other) {
- try_count_ = other.try_count_;
+ send_attempts_ = other.send_attempts_;
values_map_ = other.values_map_->CreateDeepCopy();
}
ChromotingEvent::ChromotingEvent(ChromotingEvent&& other) {
- try_count_ = other.try_count_;
+ send_attempts_ = other.send_attempts_;
values_map_ = std::move(other.values_map_);
}
@@ -50,14 +50,14 @@ ChromotingEvent::~ChromotingEvent() {}
ChromotingEvent& ChromotingEvent::operator=(const ChromotingEvent& other) {
if (this != &other) {
- try_count_ = other.try_count_;
+ send_attempts_ = other.send_attempts_;
values_map_ = other.values_map_->CreateDeepCopy();
}
return *this;
}
ChromotingEvent& ChromotingEvent::operator=(ChromotingEvent&& other) {
- try_count_ = other.try_count_;
+ send_attempts_ = other.send_attempts_;
values_map_ = std::move(other.values_map_);
return *this;
}
@@ -101,8 +101,8 @@ void ChromotingEvent::AddSystemInfo() {
SetEnum(kOsKey, os);
}
-void ChromotingEvent::IncrementTryCount() {
- try_count_++;
+void ChromotingEvent::IncrementSendAttempts() {
+ send_attempts_++;
}
std::unique_ptr<base::DictionaryValue> ChromotingEvent::CopyDictionaryValue()

Powered by Google App Engine
This is Rietveld 408576698