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

Unified Diff: remoting/host/host_event_logger_win.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/host_event_logger_posix.cc ('k') | remoting/host/host_extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_event_logger_win.cc
diff --git a/remoting/host/host_event_logger_win.cc b/remoting/host/host_event_logger_win.cc
index f3ae2c57721289e84806b11b3db83081a2f85433..d99a01fa365343d6044f10302588115db4304be0 100644
--- a/remoting/host/host_event_logger_win.cc
+++ b/remoting/host/host_event_logger_win.cc
@@ -4,13 +4,15 @@
#include "remoting/host/host_event_logger.h"
-#include <windows.h>
#include <stddef.h>
+#include <windows.h>
+
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
@@ -148,10 +150,10 @@ void HostEventLoggerWin::LogString(WORD type,
}
// static
-scoped_ptr<HostEventLogger> HostEventLogger::Create(
+std::unique_ptr<HostEventLogger> HostEventLogger::Create(
base::WeakPtr<HostStatusMonitor> monitor,
const std::string& application_name) {
- return make_scoped_ptr(new HostEventLoggerWin(monitor, application_name));
+ return base::WrapUnique(new HostEventLoggerWin(monitor, application_name));
}
} // namespace remoting
« no previous file with comments | « remoting/host/host_event_logger_posix.cc ('k') | remoting/host/host_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698