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

Unified Diff: base/environment.cc

Issue 11961021: base: Convert scoped_arrays to the new scoped_ptr style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert callback changes Created 7 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 | « no previous file | base/file_util_proxy.cc » ('j') | base/nix/mime_util_xdg.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/environment.cc
diff --git a/base/environment.cc b/base/environment.cc
index 8c61591776ee2559f6ae16ff34da55393a4de93f..6849fef88cb2484c76c510e5cf7ecdd2d054891f 100644
--- a/base/environment.cc
+++ b/base/environment.cc
@@ -66,7 +66,7 @@ class EnvironmentImpl : public base::Environment {
if (value_length == 0)
return false;
if (result) {
- scoped_array<wchar_t> value(new wchar_t[value_length]);
+ scoped_ptr<wchar_t[]> value(new wchar_t[value_length]);
::GetEnvironmentVariable(UTF8ToWide(variable_name).c_str(), value.get(),
value_length);
*result = WideToUTF8(value.get());
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | base/nix/mime_util_xdg.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698