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

Unified Diff: content/gpu/gpu_info_collector_linux.cc

Issue 13749004: Rewrite scoped_array<T> to scoped_ptr<T[]> in content/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: content/gpu/gpu_info_collector_linux.cc
diff --git a/content/gpu/gpu_info_collector_linux.cc b/content/gpu/gpu_info_collector_linux.cc
index 56b380087cb9703d33a10af5b1c7a6f87b634594..29df28836e2114291ca5f19bd140c8d740fd31bb 100644
--- a/content/gpu/gpu_info_collector_linux.cc
+++ b/content/gpu/gpu_info_collector_linux.cc
@@ -131,7 +131,7 @@ bool CollectPCIVideoCardInfo(content::GPUInfo* gpu_info) {
gpu.device_id = device->device_id;
const int buffer_size = 255;
- scoped_array<char> buffer(new char[buffer_size]);
+ scoped_ptr<char[]> buffer(new char[buffer_size]);
// The current implementation of pci_lookup_name returns the same pointer
// as the passed in upon success, and a different one (NULL or a pointer
// to an error message) upon failure.

Powered by Google App Engine
This is Rietveld 408576698