summaryrefslogtreecommitdiffstats
path: root/base/process_util_posix.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-18 14:21:58 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-18 14:21:58 +0000
commit604eb05b99b6098d36abadd2c1c2b6a1a79b705a (patch)
treea57ea3e89c68cc897af73baaf536ddfe38fda8b1 /base/process_util_posix.cc
parent64c25e10e8d8e53c536c322d274765cb93eaca77 (diff)
downloadchromium_src-604eb05b99b6098d36abadd2c1c2b6a1a79b705a.zip
chromium_src-604eb05b99b6098d36abadd2c1c2b6a1a79b705a.tar.gz
chromium_src-604eb05b99b6098d36abadd2c1c2b6a1a79b705a.tar.bz2
base: Convert scoped_arrays to the new scoped_ptr style.
BUG=109874 R=darin@chromium.org,ajwong@chromium.org Review URL: https://chromiumcodereview.appspot.com/11961021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_posix.cc')
-rw-r--r--base/process_util_posix.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 5ee1ae4..bc4c08e 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -549,8 +549,8 @@ bool LaunchProcess(const std::vector<std::string>& argv,
fd_shuffle1.reserve(fd_shuffle_size);
fd_shuffle2.reserve(fd_shuffle_size);
- scoped_array<char*> argv_cstr(new char*[argv.size() + 1]);
- scoped_array<char*> new_environ;
+ scoped_ptr<char*[]> argv_cstr(new char*[argv.size() + 1]);
+ scoped_ptr<char*[]> new_environ;
if (options.environ)
new_environ.reset(AlterEnvironment(*options.environ, GetEnvironment()));
@@ -1012,7 +1012,7 @@ static GetAppOutputInternalResult GetAppOutputInternal(
int pipe_fd[2];
pid_t pid;
InjectiveMultimap fd_shuffle1, fd_shuffle2;
- scoped_array<char*> argv_cstr(new char*[argv.size() + 1]);
+ scoped_ptr<char*[]> argv_cstr(new char*[argv.size() + 1]);
fd_shuffle1.reserve(3);
fd_shuffle2.reserve(3);