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

Unified Diff: remoting/client/server_log_entry_client.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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
« no previous file with comments | « remoting/client/server_log_entry_client.h ('k') | remoting/client/server_log_entry_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/server_log_entry_client.cc
diff --git a/remoting/client/server_log_entry_client.cc b/remoting/client/server_log_entry_client.cc
index e99345dcd1f514cdbf07edfba770891f0167052f..fdf496c87aba1d67edfb0e895c1cf9b3afbf3697 100644
--- a/remoting/client/server_log_entry_client.cc
+++ b/remoting/client/server_log_entry_client.cc
@@ -95,10 +95,10 @@ const char* GetValueError(ErrorCode error) {
} // namespace
-scoped_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
+std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
ConnectionToHost::State state,
ErrorCode error) {
- scoped_ptr<ServerLogEntry> entry(new ServerLogEntry());
+ std::unique_ptr<ServerLogEntry> entry(new ServerLogEntry());
entry->AddRoleField(kValueRoleClient);
entry->AddEventNameField(kValueEventNameSessionState);
@@ -110,9 +110,9 @@ scoped_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
return entry;
}
-scoped_ptr<ServerLogEntry> MakeLogEntryForStatistics(
+std::unique_ptr<ServerLogEntry> MakeLogEntryForStatistics(
protocol::PerformanceTracker* perf_tracker) {
- scoped_ptr<ServerLogEntry> entry(new ServerLogEntry());
+ std::unique_ptr<ServerLogEntry> entry(new ServerLogEntry());
entry->AddRoleField(kValueRoleClient);
entry->AddEventNameField(kValueEventNameStatistics);
@@ -132,18 +132,18 @@ scoped_ptr<ServerLogEntry> MakeLogEntryForStatistics(
return entry;
}
-scoped_ptr<ServerLogEntry> MakeLogEntryForSessionIdOld(
+std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionIdOld(
const std::string& session_id) {
- scoped_ptr<ServerLogEntry> entry(new ServerLogEntry());
+ std::unique_ptr<ServerLogEntry> entry(new ServerLogEntry());
entry->AddRoleField(kValueRoleClient);
entry->AddEventNameField(kValueEventNameSessionIdOld);
AddSessionIdToLogEntry(entry.get(), session_id);
return entry;
}
-scoped_ptr<ServerLogEntry> MakeLogEntryForSessionIdNew(
+std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionIdNew(
const std::string& session_id) {
- scoped_ptr<ServerLogEntry> entry(new ServerLogEntry());
+ std::unique_ptr<ServerLogEntry> entry(new ServerLogEntry());
entry->AddRoleField(kValueRoleClient);
entry->AddEventNameField(kValueEventNameSessionIdNew);
AddSessionIdToLogEntry(entry.get(), session_id);
« no previous file with comments | « remoting/client/server_log_entry_client.h ('k') | remoting/client/server_log_entry_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698