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

Unified Diff: sandbox/linux/suid/client/setuid_sandbox_host.h

Issue 1849323003: Convert //sandbox to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup nonsfi_sandbox_unittest.cc 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
Index: sandbox/linux/suid/client/setuid_sandbox_host.h
diff --git a/sandbox/linux/suid/client/setuid_sandbox_host.h b/sandbox/linux/suid/client/setuid_sandbox_host.h
index 6788892441003ca2c27a2931225078ec7f4b7934..c69c2c0c4f08042d2e72d1be19192a1554a75772 100644
--- a/sandbox/linux/suid/client/setuid_sandbox_host.h
+++ b/sandbox/linux/suid/client/setuid_sandbox_host.h
@@ -5,10 +5,11 @@
#ifndef SANDBOX_LINUX_SUID_SETUID_SANDBOX_HOST_H_
#define SANDBOX_LINUX_SUID_SETUID_SANDBOX_HOST_H_
+#include <memory>
+
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/process/launch.h"
#include "sandbox/sandbox_export.h"
@@ -60,7 +61,7 @@ class SANDBOX_EXPORT SetuidSandboxHost {
explicit SetuidSandboxHost(base::Environment* env);
// Holds the environment. Will never be NULL.
- scoped_ptr<base::Environment> env_;
+ std::unique_ptr<base::Environment> env_;
DISALLOW_COPY_AND_ASSIGN(SetuidSandboxHost);
};
« no previous file with comments | « sandbox/linux/suid/client/setuid_sandbox_client_unittest.cc ('k') | sandbox/linux/suid/client/setuid_sandbox_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698