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

Unified Diff: content/common/sandbox_mac_diraccess_unittest.mm

Issue 168643002: Convert scoped_ptr_malloc -> scoped_ptr, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « content/common/gpu/media/vaapi_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_mac_diraccess_unittest.mm
diff --git a/content/common/sandbox_mac_diraccess_unittest.mm b/content/common/sandbox_mac_diraccess_unittest.mm
index 45c730c673513f08c15d1135231d7a5fe1474596..86d3eef249c9f0f5dad8098ff15885ced73bf5fc 100644
--- a/content/common/sandbox_mac_diraccess_unittest.mm
+++ b/content/common/sandbox_mac_diraccess_unittest.mm
@@ -133,17 +133,14 @@ TEST_F(MacDirAccessSandboxTest, RegexEscape) {
}
// A class to handle auto-deleting a directory.
-class ScopedDirectoryDelete {
- public:
+struct ScopedDirectoryDelete {
inline void operator()(base::FilePath* x) const {
- if (x) {
+ if (x)
base::DeleteFile(*x, true);
- }
}
};
-typedef scoped_ptr_malloc<base::FilePath, ScopedDirectoryDelete>
- ScopedDirectory;
+typedef scoped_ptr<base::FilePath, ScopedDirectoryDelete> ScopedDirectory;
TEST_F(MacDirAccessSandboxTest, SandboxAccess) {
using base::CreateDirectory;
« no previous file with comments | « content/common/gpu/media/vaapi_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698