Index: chrome/browser/chromeos/file_manager/volume_manager_factory.cc |
diff --git a/chrome/browser/chromeos/file_manager/volume_manager_factory.cc b/chrome/browser/chromeos/file_manager/volume_manager_factory.cc |
index 600084806e4610807dad98952134bf0a3a1cc82c..6428f0fe4f298622dc08a1323b417f5f10d38059 100644 |
--- a/chrome/browser/chromeos/file_manager/volume_manager_factory.cc |
+++ b/chrome/browser/chromeos/file_manager/volume_manager_factory.cc |
@@ -8,6 +8,7 @@ |
#include "base/memory/singleton.h" |
#include "chrome/browser/chromeos/drive/drive_integration_service.h" |
#include "chrome/browser/chromeos/file_manager/volume_manager.h" |
+#include "chrome/browser/chromeos/file_system_provider/service_factory.h" |
#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chromeos/dbus/dbus_thread_manager.h" |
@@ -43,10 +44,12 @@ KeyedService* VolumeManagerFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
VolumeManager* instance = new VolumeManager( |
Profile::FromBrowserContext(profile), |
- drive::DriveIntegrationServiceFactory:: |
- GetForProfileRegardlessOfStates(Profile::FromBrowserContext(profile)), |
+ drive::DriveIntegrationServiceFactory::GetForProfileRegardlessOfStates( |
+ Profile::FromBrowserContext(profile)), |
chromeos::DBusThreadManager::Get()->GetPowerManagerClient(), |
- chromeos::disks::DiskMountManager::GetInstance()); |
+ chromeos::disks::DiskMountManager::GetInstance(), |
+ chromeos::file_system_provider::ServiceFactory::Get( |
+ Profile::FromBrowserContext(profile))); |
instance->Initialize(); |
return instance; |
} |
@@ -56,6 +59,7 @@ VolumeManagerFactory::VolumeManagerFactory() |
"VolumeManagerFactory", |
BrowserContextDependencyManager::GetInstance()) { |
DependsOn(drive::DriveIntegrationServiceFactory::GetInstance()); |
+ DependsOn(chromeos::file_system_provider::ServiceFactory::GetInstance()); |
} |
VolumeManagerFactory::~VolumeManagerFactory() { |