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

Unified Diff: remoting/host/win/launch_process_with_token.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/win/launch_process_with_token.h ('k') | remoting/host/win/rdp_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/launch_process_with_token.cc
diff --git a/remoting/host/win/launch_process_with_token.cc b/remoting/host/win/launch_process_with_token.cc
index a274b334e2f44e0e21e7b0326b887532cbf87b48..04a6660dfabace20b536c7a4940491b1cd249e27 100644
--- a/remoting/host/win/launch_process_with_token.cc
+++ b/remoting/host/win/launch_process_with_token.cc
@@ -9,10 +9,10 @@
#include <winternl.h>
#include <limits>
+#include <memory>
#include <utility>
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/rand_util.h"
#include "base/scoped_native_library.h"
#include "base/strings/string16.h"
@@ -323,7 +323,7 @@ bool SendCreateProcessRequest(
// and three nullptr-terminated string parameters.
size_t size = sizeof(CreateProcessRequest) + sizeof(wchar_t) *
(application_name.size() + command_line.size() + desktop.size() + 3);
- scoped_ptr<char[]> buffer(new char[size]);
+ std::unique_ptr<char[]> buffer(new char[size]);
memset(buffer.get(), 0, size);
// Marshal the input parameters.
« no previous file with comments | « remoting/host/win/launch_process_with_token.h ('k') | remoting/host/win/rdp_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698