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

Unified Diff: chrome/browser/chromeos/gdata/drive_system_service.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch unittest fix from michael Created 8 years, 3 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/gdata/drive_system_service.cc
diff --git a/chrome/browser/chromeos/gdata/drive_system_service.cc b/chrome/browser/chromeos/gdata/drive_system_service.cc
index c18d1a9f873e988303e9225b73b068b843f54e19..8a4b7276f9700169d79e43ab18e0ed3fe2cc5350 100644
--- a/chrome/browser/chromeos/gdata/drive_system_service.cc
+++ b/chrome/browser/chromeos/gdata/drive_system_service.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_mount_point_provider.h"
@@ -140,7 +141,8 @@ void DriveSystemService::AddDriveMountPoint() {
const FilePath mount_point = gdata::util::GetDriveMountPointPath();
fileapi::ExternalFileSystemMountPointProvider* provider =
- BrowserContext::GetFileSystemContext(profile_)->external_provider();
+ BrowserContext::GetDefaultStoragePartition(profile_)->
+ GetFileSystemContext()->external_provider();
if (provider && !provider->HasMountPoint(mount_point)) {
provider->AddRemoteMountPoint(
mount_point,
@@ -156,7 +158,8 @@ void DriveSystemService::RemoveDriveMountPoint() {
const FilePath mount_point = gdata::util::GetDriveMountPointPath();
fileapi::ExternalFileSystemMountPointProvider* provider =
- BrowserContext::GetFileSystemContext(profile_)->external_provider();
+ BrowserContext::GetDefaultStoragePartition(profile_)->
+ GetFileSystemContext()->external_provider();
if (provider && provider->HasMountPoint(mount_point))
provider->RemoveMountPoint(mount_point);
}

Powered by Google App Engine
This is Rietveld 408576698