Index: chrome/browser/chromeos/file_manager/open_with_browser.cc |
diff --git a/chrome/browser/chromeos/file_manager/open_with_browser.cc b/chrome/browser/chromeos/file_manager/open_with_browser.cc |
index 35870bb6081bb8966e5076ec2eaa31d3cb07d156..e1c1084df2848e5b3e933d70aa3115bc1bb486d7 100644 |
--- a/chrome/browser/chromeos/file_manager/open_with_browser.cc |
+++ b/chrome/browser/chromeos/file_manager/open_with_browser.cc |
@@ -10,7 +10,6 @@ |
#include "base/path_service.h" |
#include "base/threading/sequenced_worker_pool.h" |
#include "chrome/browser/chromeos/drive/drive.pb.h" |
-#include "chrome/browser/chromeos/drive/drive_integration_service.h" |
#include "chrome/browser/chromeos/drive/file_system.h" |
#include "chrome/browser/chromeos/drive/file_system_util.h" |
#include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
@@ -202,11 +201,11 @@ bool OpenFileWithBrowser(Profile* profile, const base::FilePath& file_path) { |
if (file_path.MatchesExtension(kCRXExtension)) { |
if (drive::util::IsUnderDriveMountPoint(file_path)) { |
- drive::DriveIntegrationService* integration_service = |
- drive::DriveIntegrationServiceFactory::GetForProfile(profile); |
- if (!integration_service) |
+ drive::FileSystemInterface* file_system = |
+ drive::util::GetFileSystemByProfile(profile); |
+ if (!file_system) |
return false; |
- integration_service->file_system()->GetFileByPath( |
+ file_system->GetFileByPath( |
drive::util::ExtractDrivePath(file_path), |
base::Bind(&OnCRXDownloadCallback, profile)); |
} else { |