Index: chrome/browser/download/chrome_download_manager_delegate.cc |
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc |
index a142d12738a2608964ecf831a313f03909738d22..d7b9722ca5e46ed15e2c3c48fab8d2078f57b235 100644 |
--- a/chrome/browser/download/chrome_download_manager_delegate.cc |
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc |
@@ -256,6 +256,22 @@ FilePath ChromeDownloadManagerDelegate::GetIntermediatePath( |
return dir.Append(file_name); |
} |
+int64 ChromeDownloadManagerDelegate::GetIntermediateFileLength( |
+ const FilePath& path, bool temporary) { |
+ // Get the intermediate file name. |
+ FilePath crpath = path; |
+ |
+ if (!temporary) |
+ crpath = download_util::GetCrDownloadPath(path); |
+ |
+ // Validate the start offset. |
+ int64 end = 0; |
+ if (file_util::GetFileSize(crpath, &end)) |
+ return end; |
+ |
+ return 0; |
+} |
+ |
WebContents* ChromeDownloadManagerDelegate:: |
GetAlternativeWebContentsToNotifyForDownload() { |
#if defined(OS_ANDROID) |