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); |
} |