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

Unified Diff: chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.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: chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
diff --git a/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc b/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
index 231589f880c8e6c5bc4f79240bd3a186640dc4ba..48e2740af25b651b4f9125cb6f55c371189d35d9 100644
--- a/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
+++ b/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
@@ -12,6 +12,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/location.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/path_service.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
@@ -112,10 +113,12 @@ class MediaFileValidatorTest : public InProcessBrowserTest {
base::FilePath src_path = base.AppendASCII("src_fs");
ASSERT_TRUE(base::CreateDirectory(src_path));
- ScopedVector<storage::FileSystemBackend> additional_providers;
- additional_providers.push_back(new content::TestFileSystemBackend(
- base::ThreadTaskRunnerHandle::Get().get(), src_path));
- additional_providers.push_back(new MediaFileSystemBackend(
+ std::vector<std::unique_ptr<storage::FileSystemBackend>>
+ additional_providers;
+ additional_providers.push_back(
+ base::MakeUnique<content::TestFileSystemBackend>(
+ base::ThreadTaskRunnerHandle::Get().get(), src_path));
+ additional_providers.push_back(base::MakeUnique<MediaFileSystemBackend>(
base, base::ThreadTaskRunnerHandle::Get().get()));
file_system_context_ =
content::CreateFileSystemContextWithAdditionalProvidersForTesting(

Powered by Google App Engine
This is Rietveld 408576698