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

Unified Diff: components/nacl/zygote/nacl_fork_delegate_linux.cc

Issue 2647273002: Remove ScopedVector from content::ZygoteMain() (Closed)
Patch Set: Created 3 years, 11 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 | « components/nacl/zygote/nacl_fork_delegate_linux.h ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/zygote/nacl_fork_delegate_linux.cc
diff --git a/components/nacl/zygote/nacl_fork_delegate_linux.cc b/components/nacl/zygote/nacl_fork_delegate_linux.cc
index b1b39eccd32c26b9579a8567adada4fb0b4482e7..40e3a53079c22feded1a0a8b6e1ade9d31768b46 100644
--- a/components/nacl/zygote/nacl_fork_delegate_linux.cc
+++ b/components/nacl/zygote/nacl_fork_delegate_linux.cc
@@ -10,7 +10,6 @@
#include <sys/resource.h>
#include <sys/socket.h>
-#include <memory>
#include <set>
#include "base/command_line.h"
@@ -19,7 +18,7 @@
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
+#include "base/memory/ptr_util.h"
#include "base/path_service.h"
#include "base/pickle.h"
#include "base/posix/eintr_wrapper.h"
@@ -131,9 +130,11 @@ bool SendIPCRequestAndReadReply(int ipc_channel,
namespace nacl {
void AddNaClZygoteForkDelegates(
- ScopedVector<content::ZygoteForkDelegate>* delegates) {
- delegates->push_back(new NaClForkDelegate(false /* nonsfi_mode */));
- delegates->push_back(new NaClForkDelegate(true /* nonsfi_mode */));
+ std::vector<std::unique_ptr<content::ZygoteForkDelegate>>* delegates) {
+ delegates->push_back(
+ base::MakeUnique<NaClForkDelegate>(false /* nonsfi_mode */));
+ delegates->push_back(
+ base::MakeUnique<NaClForkDelegate>(true /* nonsfi_mode */));
}
NaClForkDelegate::NaClForkDelegate(bool nonsfi_mode)
« no previous file with comments | « components/nacl/zygote/nacl_fork_delegate_linux.h ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698