summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 20:25:46 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 20:25:46 +0000
commita1ba58ad06bed1452be605b5c2c01a203adea13e (patch)
treeb00adadd92c07ac92d7d1b7b758e93ce22ea2988 /chrome/service
parent84efa823aece2b561dbd2764e06aa7ea618f1b81 (diff)
downloadchromium_src-a1ba58ad06bed1452be605b5c2c01a203adea13e.zip
chromium_src-a1ba58ad06bed1452be605b5c2c01a203adea13e.tar.gz
chromium_src-a1ba58ad06bed1452be605b5c2c01a203adea13e.tar.bz2
Rewrite scoped_array<T> to scoped_ptr<T[]> in chrome.
This is a manual cleanup pass using sed for files which are not built on Linux. BUG=171111 Review URL: https://chromiumcodereview.appspot.com/14114006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/cloud_print/print_system_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 903d192..881e795 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -837,7 +837,7 @@ bool PrintSystemWin::GetJobDetails(const std::string& printer_name,
if (ERROR_INVALID_PARAMETER != last_error) {
// ERROR_INVALID_PARAMETER normally means that the job id is not valid.
DCHECK(last_error == ERROR_INSUFFICIENT_BUFFER);
- scoped_array<BYTE> job_info_buffer(new BYTE[bytes_needed]);
+ scoped_ptr<BYTE[]> job_info_buffer(new BYTE[bytes_needed]);
if (GetJob(printer_handle, job_id, 1, job_info_buffer.get(), bytes_needed,
&bytes_needed)) {
JOB_INFO_1 *job_info =