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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_service.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
Index: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_service.cc
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_service.cc b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d1cf9311320f9c8e40fa12e476830ef77fdf6661
--- /dev/null
+++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_service.cc
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_service.h"
+
+#include "base/files/file_path.h"
+#include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.h"
+#include "storage/browser/fileapi/external_mount_points.h"
+
+namespace arc {
+
+ArcContentFileSystemService::ArcContentFileSystemService(
+ ArcBridgeService* arc_bridge_service)
+ : ArcService(arc_bridge_service) {
+ storage::ExternalMountPoints::GetSystemInstance()->RegisterFileSystem(
+ kMountPointName, storage::kFileSystemTypeArcContent,
+ storage::FileSystemMountOption(), base::FilePath(kMountPointPath));
+}
+
+ArcContentFileSystemService::~ArcContentFileSystemService() {
+ storage::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem(
+ kMountPointName);
+}
+
+} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698