| Index: chrome/browser/chromeos/drive/download_handler.cc
|
| diff --git a/chrome/browser/chromeos/drive/download_handler.cc b/chrome/browser/chromeos/drive/download_handler.cc
|
| index 9111e8b56d7b82ad0086cea4ab1a4b0b5443601a..81b3f20871680c8360b699a32eb1de0faf887f5d 100644
|
| --- a/chrome/browser/chromeos/drive/download_handler.cc
|
| +++ b/chrome/browser/chromeos/drive/download_handler.cc
|
| @@ -18,9 +18,9 @@
|
| #include "chrome/browser/chromeos/drive/drive_integration_service.h"
|
| #include "chrome/browser/chromeos/drive/file_system_util.h"
|
| #include "chrome/browser/chromeos/drive/write_on_cache_file.h"
|
| +#include "chrome/browser/download/download_core_service.h"
|
| +#include "chrome/browser/download/download_core_service_factory.h"
|
| #include "chrome/browser/download/download_history.h"
|
| -#include "chrome/browser/download/download_service.h"
|
| -#include "chrome/browser/download/download_service_factory.h"
|
| #include "components/drive/chromeos/file_system_interface.h"
|
| #include "components/drive/drive.pb.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -117,10 +117,11 @@ bool IsPersistedDriveDownload(const base::FilePath& drive_tmp_download_path,
|
| if (!drive_tmp_download_path.IsParent(download->GetTargetFilePath()))
|
| return false;
|
|
|
| - DownloadService* download_service =
|
| - DownloadServiceFactory::GetForBrowserContext(
|
| + DownloadCoreService* download_core_service =
|
| + DownloadCoreServiceFactory::GetForBrowserContext(
|
| download->GetBrowserContext());
|
| - DownloadHistory* download_history = download_service->GetDownloadHistory();
|
| + DownloadHistory* download_history =
|
| + download_core_service->GetDownloadHistory();
|
|
|
| return download_history && download_history->WasRestoredFromHistory(download);
|
| }
|
|
|