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

Unified Diff: chrome/browser/chromeos/file_manager/volume_manager.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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/file_manager/volume_manager.cc
diff --git a/chrome/browser/chromeos/file_manager/volume_manager.cc b/chrome/browser/chromeos/file_manager/volume_manager.cc
index 63473d5be1a18ce69962f9ca69a85475f7b9bbf7..c60ba7174842590e6322acd909ffce81aa1fa821 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc
@@ -53,15 +53,16 @@ bool RegisterDownloadsMountPoint(Profile* profile, const base::FilePath& path) {
// For this reason, we need to register to the global GetSystemInstance().
const std::string mount_point_name =
file_manager::util::GetDownloadsMountPointName(profile);
- fileapi::ExternalMountPoints* const mount_points =
- fileapi::ExternalMountPoints::GetSystemInstance();
+ storage::ExternalMountPoints* const mount_points =
+ storage::ExternalMountPoints::GetSystemInstance();
// In some tests we want to override existing Downloads mount point, so we
// first revoke the existing mount point (if any).
mount_points->RevokeFileSystem(mount_point_name);
- return mount_points->RegisterFileSystem(
- mount_point_name, fileapi::kFileSystemTypeNativeLocal,
- fileapi::FileSystemMountOption(), path);
+ return mount_points->RegisterFileSystem(mount_point_name,
+ storage::kFileSystemTypeNativeLocal,
+ storage::FileSystemMountOption(),
+ path);
}
// Finds the path register as the "Downloads" folder to FileSystem API backend.
@@ -69,8 +70,8 @@ bool RegisterDownloadsMountPoint(Profile* profile, const base::FilePath& path) {
bool FindDownloadsMountPointPath(Profile* profile, base::FilePath* path) {
const std::string mount_point_name =
util::GetDownloadsMountPointName(profile);
- fileapi::ExternalMountPoints* const mount_points =
- fileapi::ExternalMountPoints::GetSystemInstance();
+ storage::ExternalMountPoints* const mount_points =
+ storage::ExternalMountPoints::GetSystemInstance();
return mount_points->GetRegisteredPath(mount_point_name, path);
}
@@ -696,9 +697,11 @@ void VolumeManager::OnRemovableStorageAttached(
label = base_name + base::StringPrintf(" (%d)", i);
bool result =
- fileapi::ExternalMountPoints::GetSystemInstance()->RegisterFileSystem(
- fsid, fileapi::kFileSystemTypeDeviceMediaAsFileStorage,
- fileapi::FileSystemMountOption(), path);
+ storage::ExternalMountPoints::GetSystemInstance()->RegisterFileSystem(
+ fsid,
+ storage::kFileSystemTypeDeviceMediaAsFileStorage,
+ storage::FileSystemMountOption(),
+ path);
DCHECK(result);
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE, base::Bind(
@@ -730,8 +733,7 @@ void VolumeManager::OnRemovableStorageDetached(
DoUnmountEvent(chromeos::MOUNT_ERROR_NONE, VolumeInfo(it->second));
const std::string fsid = GetMountPointNameForMediaStorage(info);
- fileapi::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem(
- fsid);
+ storage::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem(fsid);
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE, base::Bind(
&MTPDeviceMapService::RevokeMTPFileSystem,

Powered by Google App Engine
This is Rietveld 408576698