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

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: remove useless headers. 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 d1688e566704d3f96a6082fd9a72396ff579d42b..99c8f307481bbb9d38a9582a7f6165120f2fb760 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