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

Unified Diff: content/browser/fileapi/file_system_url_request_job_unittest.cc

Issue 2618393003: Remove ScopedVector from ContentBrowserClient. (Closed)
Patch Set: rebase Created 3 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
Index: content/browser/fileapi/file_system_url_request_job_unittest.cc
diff --git a/content/browser/fileapi/file_system_url_request_job_unittest.cc b/content/browser/fileapi/file_system_url_request_job_unittest.cc
index 146efcc4989d0314d6ffe64639b26fcfad0538ee..3203d4a8b1e7aff8c01ced916df91c4382383dc4 100644
--- a/content/browser/fileapi/file_system_url_request_job_unittest.cc
+++ b/content/browser/fileapi/file_system_url_request_job_unittest.cc
@@ -13,7 +13,7 @@
#include "base/format_macros.h"
#include "base/location.h"
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/weak_ptr.h"
#include "base/rand_util.h"
#include "base/run_loop.h"
@@ -161,8 +161,9 @@ class FileSystemURLRequestJobTest : public testing::Test {
temp_dir_.GetPath().AppendASCII("auto_mount_dir");
ASSERT_TRUE(base::CreateDirectory(mnt_point));
- ScopedVector<storage::FileSystemBackend> additional_providers;
- additional_providers.push_back(new TestFileSystemBackend(
+ std::vector<std::unique_ptr<storage::FileSystemBackend>>
+ additional_providers;
+ additional_providers.push_back(base::MakeUnique<TestFileSystemBackend>(
base::ThreadTaskRunnerHandle::Get().get(), mnt_point));
std::vector<storage::URLRequestAutoMountHandler> handlers;
« no previous file with comments | « content/browser/fileapi/file_system_operation_runner_unittest.cc ('k') | content/browser/frame_host/navigation_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698