Chromium Code Reviews

Unified Diff: content/public/test/sandbox_file_system_test_helper.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/sandbox_file_system_test_helper.cc
diff --git a/content/public/test/sandbox_file_system_test_helper.cc b/content/public/test/sandbox_file_system_test_helper.cc
index 477e3dec792a1d2490a489c031f3b440fac536ba..57071c27755b80cf4d2e6106c85de9857714e43f 100644
--- a/content/public/test/sandbox_file_system_test_helper.cc
+++ b/content/public/test/sandbox_file_system_test_helper.cc
@@ -4,8 +4,9 @@
#include "content/public/test/sandbox_file_system_test_helper.h"
+#include <memory>
+
#include "base/files/file_util.h"
-#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "content/public/test/mock_special_storage_policy.h"
#include "content/public/test/test_file_system_context.h"
@@ -76,7 +77,7 @@ base::FilePath SandboxFileSystemTestHelper::GetLocalPath(
const base::FilePath& path) {
DCHECK(file_util_);
base::FilePath local_path;
- scoped_ptr<FileSystemOperationContext> context(NewOperationContext());
+ std::unique_ptr<FileSystemOperationContext> context(NewOperationContext());
file_util_->GetLocalFilePath(context.get(), CreateURL(path), &local_path);
return local_path;
}
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine