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

Unified Diff: remoting/host/server_log_entry_host.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/host/server_log_entry_host.h ('k') | remoting/host/server_log_entry_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/server_log_entry_host.cc
diff --git a/remoting/host/server_log_entry_host.cc b/remoting/host/server_log_entry_host.cc
index 2ede7e8a70647503f8f8b6c71f22d93a15ce6c8f..62d1e7977f61dfcdcf7cc72c09ed4fc6b4339438 100644
--- a/remoting/host/server_log_entry_host.cc
+++ b/remoting/host/server_log_entry_host.cc
@@ -33,17 +33,17 @@ const char* GetValueSessionState(bool connected) {
} // namespace
-scoped_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
+std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
bool connected) {
- scoped_ptr<ServerLogEntry> entry(new ServerLogEntry());
+ std::unique_ptr<ServerLogEntry> entry(new ServerLogEntry());
entry->AddRoleField(kValueRoleHost);
entry->AddEventNameField(kValueEventNameSessionState);
entry->Set(kKeySessionState, GetValueSessionState(connected));
return entry;
}
-scoped_ptr<ServerLogEntry> MakeLogEntryForHeartbeat() {
- scoped_ptr<ServerLogEntry> entry(new ServerLogEntry());
+std::unique_ptr<ServerLogEntry> MakeLogEntryForHeartbeat() {
+ std::unique_ptr<ServerLogEntry> entry(new ServerLogEntry());
entry->AddRoleField(kValueRoleHost);
entry->AddEventNameField(kValueEventNameHeartbeat);
return entry;
« no previous file with comments | « remoting/host/server_log_entry_host.h ('k') | remoting/host/server_log_entry_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698