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

Unified Diff: chrome/browser/platform_util_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: chrome/browser/platform_util_unittest.cc
diff --git a/chrome/browser/platform_util_unittest.cc b/chrome/browser/platform_util_unittest.cc
index a929cb675eb613c19e383eb3b733f75334e35988..3eb2e2c85fa0f8d3d76425beac54b9cd0e3e436a 100644
--- a/chrome/browser/platform_util_unittest.cc
+++ b/chrome/browser/platform_util_unittest.cc
@@ -18,6 +18,7 @@
#if defined(OS_CHROMEOS)
#include "base/json/json_string_value_serializer.h"
+#include "base/memory/ptr_util.h"
#include "base/values.h"
#include "chrome/browser/chrome_content_browser_client.h"
#include "chrome/browser/chromeos/file_manager/app_id.h"
@@ -50,15 +51,16 @@ class PlatformUtilTestContentBrowserClient : public ChromeContentBrowserClient {
void GetAdditionalFileSystemBackends(
content::BrowserContext* browser_context,
const base::FilePath& storage_partition_path,
- ScopedVector<storage::FileSystemBackend>* additional_backends) override {
+ std::vector<std::unique_ptr<storage::FileSystemBackend>>*
+ additional_backends) override {
storage::ExternalMountPoints* external_mount_points =
content::BrowserContext::GetMountPoints(browser_context);
// New FileSystemBackend that uses our MockSpecialStoragePolicy.
- chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend(
- nullptr, nullptr, nullptr, nullptr, nullptr, external_mount_points,
- storage::ExternalMountPoints::GetSystemInstance());
- additional_backends->push_back(backend);
+ additional_backends->push_back(
+ base::MakeUnique<chromeos::FileSystemBackend>(
+ nullptr, nullptr, nullptr, nullptr, nullptr, external_mount_points,
+ storage::ExternalMountPoints::GetSystemInstance()));
}
};

Powered by Google App Engine
This is Rietveld 408576698