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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2450713002: arc: Register ARC content file system (Closed)
Patch Set: Address comments Created 4 years, 2 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 | « no previous file | chrome/browser/chromeos/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 19f94c6d392b27014d05468bd0366373e0207029..b0a2b31e23668be540cc46525d49b497c859e588 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -200,6 +200,7 @@
#include "chrome/browser/chrome_browser_main_mac.h"
#elif defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/arc/arc_auth_service.h"
+#include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_backend_delegate.h"
#include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h"
#include "chrome/browser/chromeos/attestation/platform_verification_impl.h"
#include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
@@ -2751,11 +2752,12 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
content::BrowserContext::GetMountPoints(browser_context);
DCHECK(external_mount_points);
chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend(
- new drive::FileSystemBackendDelegate,
- new chromeos::file_system_provider::BackendDelegate,
- new chromeos::MTPFileSystemBackendDelegate(storage_partition_path),
- external_mount_points,
- storage::ExternalMountPoints::GetSystemInstance());
+ base::MakeUnique<drive::FileSystemBackendDelegate>(),
+ base::MakeUnique<chromeos::file_system_provider::BackendDelegate>(),
+ base::MakeUnique<chromeos::MTPFileSystemBackendDelegate>(
+ storage_partition_path),
+ base::MakeUnique<arc::ArcContentFileSystemBackendDelegate>(),
+ external_mount_points, storage::ExternalMountPoints::GetSystemInstance());
backend->AddSystemMountPoints();
DCHECK(backend->CanHandleType(storage::kFileSystemTypeExternal));
additional_backends->push_back(backend);
« no previous file with comments | « no previous file | chrome/browser/chromeos/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698