summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authorcsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-21 18:38:54 +0000
committercsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-21 18:38:54 +0000
commita5e0ef57d7e8b9518c595b4ad3cdf005c7998b4a (patch)
treecd88d897ca70bf1bda63999d93818b8555c3a449 /chrome/service
parent2ddc49477b9b8a65ecd4e344019e994da405beb1 (diff)
downloadchromium_src-a5e0ef57d7e8b9518c595b4ad3cdf005c7998b4a.zip
chromium_src-a5e0ef57d7e8b9518c595b4ad3cdf005c7998b4a.tar.gz
chromium_src-a5e0ef57d7e8b9518c595b4ad3cdf005c7998b4a.tar.bz2
Cleanup: Fix some style issues in the printing code. Fix misuse of scoped_ptr.
Patch created by arthurhsu@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6880092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82523 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 82d5b43..3c3dfd1 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -209,7 +209,7 @@ class PrintSystemWatcherWin : public base::win::ObjectWatcher::Delegate {
bool ret = false;
GetPrinter(printer_, 2, NULL, 0, &bytes_needed);
if (0 != bytes_needed) {
- scoped_ptr<BYTE> printer_info_buffer(new BYTE[bytes_needed]);
+ scoped_array<BYTE> printer_info_buffer(new BYTE[bytes_needed]);
if (GetPrinter(printer_, 2, printer_info_buffer.get(),
bytes_needed, &bytes_needed)) {
PRINTER_INFO_2* printer_info_win =