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

Unified Diff: mojo/shell/runner/host/linux_sandbox.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: mojo/shell/runner/host/linux_sandbox.h
diff --git a/mojo/shell/runner/host/linux_sandbox.h b/mojo/shell/runner/host/linux_sandbox.h
index 9cf5e7de2f5f2742acf461af3cd8a0b0e8f732f5..df81cf4d7ef59016db1319ab07ec0670c2b7c21d 100644
--- a/mojo/shell/runner/host/linux_sandbox.h
+++ b/mojo/shell/runner/host/linux_sandbox.h
@@ -5,6 +5,8 @@
#ifndef MOJO_SHELL_RUNNER_HOST_LINUX_SANDBOX_H_
#define MOJO_SHELL_RUNNER_HOST_LINUX_SANDBOX_H_
+#include <memory>
+
#include "base/files/scoped_file.h"
#include "base/macros.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl.h"
@@ -39,8 +41,8 @@ class LinuxSandbox {
private:
bool warmed_up_;
base::ScopedFD proc_fd_;
- scoped_ptr<sandbox::syscall_broker::BrokerProcess> broker_;
- scoped_ptr<sandbox::bpf_dsl::Policy> policy_;
+ std::unique_ptr<sandbox::syscall_broker::BrokerProcess> broker_;
+ std::unique_ptr<sandbox::bpf_dsl::Policy> policy_;
DISALLOW_COPY_AND_ASSIGN(LinuxSandbox);
};
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc ('k') | sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698